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

Method test_check

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

Source from the content-addressed store, hash-verified

1803 cp.check_returncode()
1804
1805 def test_check(self):
1806 with self.assertRaises(subprocess.CalledProcessError) as c:
1807 self.run_python("import sys; sys.exit(47)", check=True)
1808 self.assertEqual(c.exception.returncode, 47)
1809
1810 def test_check_zero(self):
1811 # 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