mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +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():
|
def urlcleanup():
|
||||||
if _urlopener:
|
if _urlopener:
|
||||||
_urlopener.cleanup()
|
_urlopener.cleanup()
|
||||||
|
_safemaps.clear()
|
||||||
|
ftpcache.clear()
|
||||||
|
|
||||||
# check for SSL
|
# check for SSL
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue