[bugfix] Ignore unclosed socket warnings for py3
[bugfix] Ignore unclosed socket warnings for py3

Bug: T184996
Change-Id: I3b979329780af4c75191607d2db900cfe154a763

wikimedia/pywikibot-core,magul/pywikibot-core,PersianWikipedia/pywikibot-core,magul/pywikibot-core,wikimedia/pywikibot-core