8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 457a459 commit 4cefe3cCopy full SHA for 4cefe3c
Lib/test/test_subprocess.py
@@ -1695,9 +1695,10 @@ def test_run_with_pathlike_path_and_arguments(self):
1695
@unittest.skipUnless(mswindows, "Maybe test trigger a leak on Ubuntu")
1696
def test_run_with_an_empty_env(self):
1697
# gh-105436: fix subprocess.run(..., env={}) broken on Windows
1698
- args = [sys.executable, "-c 6D14 ", 'import sys; sys.exit(57)']
1699
- res = subprocess.run(args, env={})
1700
- self.assertEqual(res.returncode, 57)
+ args = [sys.executable, "-c", 'pass']
+ # Ignore subprocess errors - we only care that the API doesn't
+ # raise an OSError
1701
+ subprocess.run(args, env={})
1702
1703
def test_capture_output(self):
1704
cp = self.run_python(("import sys;"
0 commit comments