mirror of
https://github.com/python/cpython.git
synced 2026-06-27 19:36:07 +00:00
[3.13] gh-150046: Fix test_add_python_opts to ignore PYTHON* env vars (GH-150089) (#150563)
gh-150046: Fix `test_add_python_opts` to ignore `PYTHON*` env vars (GH-150089)
Avoid the runtime environment from affecting the tests' behaviours,
which notably checks the warning filters which can be controlled by
various PYTHON environment variables.
(cherry picked from commit ef2246f788)
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
This commit is contained in:
parent
8603881e6e
commit
f20bcf0f23
1 changed files with 2 additions and 1 deletions
|
|
@ -2275,7 +2275,8 @@ def test_python_opts(self):
|
|||
proc = subprocess.run(cmd,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT,
|
||||
text=True)
|
||||
text=True,
|
||||
env=support.make_clean_env())
|
||||
self.assertEqual(proc.returncode, 0, proc)
|
||||
|
||||
def test_add_python_opts(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue