MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_run_kwargs

Method test_run_kwargs

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

Source from the content-addressed store, hash-verified

1868 timeout=0.1, stdout=subprocess.PIPE)
1869
1870 def test_run_kwargs(self):
1871 newenv = os.environ.copy()
1872 newenv["FRUIT"] = "banana"
1873 cp = self.run_python(('import sys, os;'
1874 'sys.exit(33 if os.getenv("FRUIT")=="banana" else 31)'),
1875 env=newenv)
1876 self.assertEqual(cp.returncode, 33)
1877
1878 def test_run_with_pathlike_path(self):
1879 # 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