(self)
| 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 |
nothing calls this directly
no test coverage detected