Fix transient refleaks in test_urllib. Thanks to Florent Xicluna.
This commit is contained in:
parent
8c54e7819a
commit
ca173e2a07
|
@ -95,6 +95,8 @@ def urlretrieve(url, filename=None, reporthook=None, data=None):
|
|||
def urlcleanup():
|
||||
if _urlopener:
|
||||
_urlopener.cleanup()
|
||||
_safemaps.clear()
|
||||
ftpcache.clear()
|
||||
|
||||
# check for SSL
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue