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

Method test_check

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

Source from the content-addressed store, hash-verified

1805 cp.check_returncode()
1806
1807 def test_check(self):
1808 with self.assertRaises(subprocess.CalledProcessError) as c:
1809 self.run_python("import sys; sys.exit(47)", check=True)
1810 self.assertEqual(c.exception.returncode, 47)
1811
1812 def test_check_zero(self):
1813 # check_returncode shouldn't raise when returncode is zero

Callers

nothing calls this directly

Calls 3

run_pythonMethod · 0.95
assertRaisesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected