• Victor Stinner's avatar
    bpo-37421: urllib.request tests call urlcleanup() (GH-14529) · 7cb9204e
    Victor Stinner authored
    urllib.request tests now call urlcleanup() to remove temporary files
    created by urlretrieve() tests and to clear the _opener global
    variable set by urlopen() and functions calling indirectly urlopen().
    
    regrtest now checks if urllib.request._url_tempfiles and
    urllib.request._opener are changed by tests.
    7cb9204e
test_urllib2.py 75.4 KB