]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 26 Jun 2019 19:37:57 +0000 (12:37 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2019 19:37:57 +0000 (12:37 -0700)
commit814c7aefc2b8e9892bce3d59c0ab39563d658aa2
tree8acb8822b340cc4e9d4e5e0762e963ac9cd734c1
parent7675bca4b56c532875d8bc6a7832e3c51d71278f
bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394)

Fix test_wsgiref.testEnviron() to no longer depend on the environment
variables (don't fail if "X" variable is set).

testEnviron() now overrides os.environ to get a deterministic
environment. Test full TestHandler.environ content: not only a few
selected variables.
(cherry picked from commit 5150d327924959639215ed0a78feffc0d88258da)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/test/test_wsgiref.py
Misc/NEWS.d/next/Tests/2019-06-26-15-28-45.bpo-37411.5lGNhM.rst [new file with mode: 0644]