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

Method test_check_output_timeout

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

Source from the content-addressed store, hash-verified

1864 self.assertIn('input', c.exception.args[0])
1865
1866 def test_check_output_timeout(self):
1867 with self.assertRaises(subprocess.TimeoutExpired) as c:
1868 cp = self.run_python(
1869 "import time; time.sleep(3600)",
1870 timeout=0.1, stdout=subprocess.PIPE)
1871
1872 def test_run_kwargs(self):
1873 newenv = os.environ.copy()

Callers

nothing calls this directly

Calls 2

run_pythonMethod · 0.95
assertRaisesMethod · 0.45

Tested by

no test coverage detected