Commit ca173e2a authored by Antoine Pitrou's avatar Antoine Pitrou

Fix transient refleaks in test_urllib. Thanks to Florent Xicluna.

parent 8c54e781
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment