diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-26 19:38:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-26 19:38:25 (GMT) |
commit | bdbd5e895ddf9aefcb79cdc52341f0697ad6aea0 (patch) | |
tree | 9de4a92198e1c0d919f35d7e1aba6cbeda2395bc /Misc/NEWS.d/next | |
parent | af7282e1299821132ceb948df70e5a6dfc0c3619 (diff) | |
download | cpython-bdbd5e895ddf9aefcb79cdc52341f0697ad6aea0.zip cpython-bdbd5e895ddf9aefcb79cdc52341f0697ad6aea0.tar.gz cpython-bdbd5e895ddf9aefcb79cdc52341f0697ad6aea0.tar.bz2 |
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>
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2019-06-26-15-28-45.bpo-37411.5lGNhM.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2019-06-26-15-28-45.bpo-37411.5lGNhM.rst b/Misc/NEWS.d/next/Tests/2019-06-26-15-28-45.bpo-37411.5lGNhM.rst new file mode 100644 index 0000000..20e52d3 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2019-06-26-15-28-45.bpo-37411.5lGNhM.rst @@ -0,0 +1,2 @@ +Fix test_wsgiref.testEnviron() to no longer depend on the environment +variables (don't fail if "X" variable is set). |