Thanks to visit codestin.com Credit goes to github.com
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 2b1745f commit c2e51a9Copy full SHA for c2e51a9
Lib/test/test_subprocess.py
@@ -1693,9 +1693,10 @@ def test_run_with_pathlike_path_and_arguments(self):
1693
@unittest.skipUnless(mswindows, "Maybe test trigger a leak on Ubuntu")
1694
def test_run_with_an_empty_env(self):
1695
# gh-105436: fix subprocess.run(..., env={}) broken on Windows
1696
- args = [sys.executable, "-c", 'import sys; sys.exit(57)']
1697
- res = subprocess.run(args, env={})
1698
- self.assertEqual(res.returncode, 57)
+ args = [sys.executable, "-c", 'pass']
+ # Ignore subprocess errors - we only care that the API doesn't
+ # raise an OSError
1699
+ subprocess.run(args, env={})
1700
1701
def test_capture_output(self):
1702
cp = self.run_python(("import sys;"
0 commit comments