]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41939: Fix test_site.test_license_exists_at_url() (GH-22559)
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 6 Oct 2020 07:03:27 +0000 (00:03 -0700)
committerGitHub <noreply@github.com>
Tue, 6 Oct 2020 07:03:27 +0000 (00:03 -0700)
commit78bddc7794a629614dc84e195b9117416ae97ed3
tree235f3c9345f0b2a447b8ea3b78a59d0c822a5428
parent31ceccb2c77854893f3a754aca04bedd74bedb10
bpo-41939: Fix test_site.test_license_exists_at_url() (GH-22559)

Call urllib.request.urlcleanup() to reset the global
urllib.request._opener.
(cherry picked from commit 1fce240d6c4b2b2cc17a86e88c65169e15b9feeb)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_site.py
Misc/NEWS.d/next/Tests/2020-10-05-09-37-43.bpo-41939.P4OlbA.rst [new file with mode: 0644]