]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41939: Fix test_site.test_license_exists_at_url() (GH-22559) (#22567)
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 5 Oct 2020 16:49:41 +0000 (09:49 -0700)
committerGitHub <noreply@github.com>
Mon, 5 Oct 2020 16:49:41 +0000 (18:49 +0200)
commit10b4136bfa5878c058753e1d1bd091e0f7e1ba40
treee23118379ba8ba2172e9eb1905ec2f4ffa159a38
parent1691435fe7e369083c6e8c4a55786dc9c6448a29
bpo-41939: Fix test_site.test_license_exists_at_url() (GH-22559) (#22567)

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]