]> 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:38:25 +0000 (12:38 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2019 19:38:25 +0000 (12:38 -0700)
commitbdbd5e895ddf9aefcb79cdc52341f0697ad6aea0
tree9de4a92198e1c0d919f35d7e1aba6cbeda2395bc
parentaf7282e1299821132ceb948df70e5a6dfc0c3619
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]