MCPcopy Index your code
hub / github.com/python/cpython / test_run_kwargs

Method test_run_kwargs

Lib/test/test_subprocess.py:1872–1878  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1870 timeout=0.1, stdout=subprocess.PIPE)
1871
1872 def test_run_kwargs(self):
1873 newenv = os.environ.copy()
1874 newenv["FRUIT"] = "banana"
1875 cp = self.run_python(('import sys, os;'
1876 'sys.exit(33 if os.getenv("FRUIT")=="banana" else 31)'),
1877 env=newenv)
1878 self.assertEqual(cp.returncode, 33)
1879
1880 def test_run_with_pathlike_path(self):
1881 # bpo-31961: test run(pathlike_object)

Callers

nothing calls this directly

Calls 3

run_pythonMethod · 0.95
copyMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected