]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394) (GH-14404)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 26 Jun 2019 20:54:27 +0000 (13:54 -0700)
committerVictor Stinner <vstinner@redhat.com>
Wed, 26 Jun 2019 20:54:27 +0000 (22:54 +0200)
commitdfa9499ccbc14a4227ca8d0c1728e2beacbb45c6
tree787907981d717976c98951a0a91e7e6d57fd2476
parent49032fa7e1cc1b6dc12b898daac24b75bae7572c
[2.7] bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394) (GH-14404)

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]