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

Method test_check_zero

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

Source from the content-addressed store, hash-verified

1810 self.assertEqual(c.exception.returncode, 47)
1811
1812 def test_check_zero(self):
1813 # check_returncode shouldn't raise when returncode is zero
1814 cp = subprocess.run(ZERO_RETURN_CMD, check=True)
1815 self.assertEqual(cp.returncode, 0)
1816
1817 def test_timeout(self):
1818 # run() function with timeout argument; we want to test that the child

Callers

nothing calls this directly

Calls 2

runMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected