Kaydet (Commit) ca173e2a authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Fix transient refleaks in test_urllib. Thanks to Florent Xicluna.

üst 8c54e781
...@@ -95,6 +95,8 @@ def urlretrieve(url, filename=None, reporthook=None, data=None): ...@@ -95,6 +95,8 @@ def urlretrieve(url, filename=None, reporthook=None, data=None):
def urlcleanup(): def urlcleanup():
if _urlopener: if _urlopener:
_urlopener.cleanup() _urlopener.cleanup()
_safemaps.clear()
ftpcache.clear()
# check for SSL # check for SSL
try: 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