]> granicus.if.org Git - python/commit
bpo-37421: urllib.request tests call urlcleanup() (GH-14529)
authorVictor Stinner <vstinner@redhat.com>
Tue, 2 Jul 2019 12:50:19 +0000 (14:50 +0200)
committerGitHub <noreply@github.com>
Tue, 2 Jul 2019 12:50:19 +0000 (14:50 +0200)
commit7cb9204ee1cf204f6f507d99a60f7c5bb359eebb
treeae351690ede26e65b690c5802de6aa0a850894ee
parent039fb49c185570ab7b02f13fbdc51c859cfd831e
bpo-37421: urllib.request tests call urlcleanup() (GH-14529)

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.
Lib/test/libregrtest/save_env.py
Lib/test/test_robotparser.py
Lib/test/test_sax.py
Lib/test/test_urllib.py
Lib/test/test_urllib2.py
Lib/test/test_urllib2_localnet.py
Lib/test/test_urllib2net.py
Lib/test/test_urllibnet.py
Misc/NEWS.d/next/Tests/2019-07-01-19-56-17.bpo-37421.bOe350.rst [new file with mode: 0644]