Skip to content

Commit 014cb12

Browse files
committed
Skip test in test_subprocess due to environment pollution
1 parent 1fa0523 commit 014cb12

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Lib/test/test_subprocess.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,8 +1292,11 @@ def test_universal_newlines_communicate_stdin_stdout_stderr(self):
12921292
# to stderr at exit of subprocess.
12931293
self.assertTrue(stderr.startswith("eline2\neline6\neline7\n"))
12941294

1295-
# TODO: RUSTPYTHON
1296-
@unittest.expectedFailure
1295+
import json # TODO: RUSTPYTHON see below
1296+
@unittest.skipIf(
1297+
json.loads(next((x for x in sys.argv if "fail_env_changed" in x), '{"fail_env_changed":False}'))["fail_env_changed"],
1298+
"TODO: RUSTPYTHON environment pollution when running rustpython -m test --fail-env-changed due to unknown reason"
1299+
)
12971300
def test_universal_newlines_communicate_encodings(self):
12981301
# Check that universal newlines mode works for various encodings,
12991302
# in particular for encodings in the UTF-16 and UTF-32 families.

0 commit comments

Comments
 (0)