mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Fix transient refleaks in test_urllib. Thanks to Florent Xicluna.
This commit is contained in:
parent
8c54e7819a
commit
ca173e2a07
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue