(self)
| 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 |
| 1819 | # process gets killed when the timeout expires. If the child isn't |
| 1820 | # killed, this call will deadlock since subprocess.run waits for the |
| 1821 | # child. |
| 1822 | with self.assertRaises(subprocess.TimeoutExpired): |
| 1823 | self.run_python("while True: pass", timeout=0.0001) |
| 1824 | |
| 1825 | def test_capture_stdout(self): |
| 1826 | # capture stdout with zero return code |
nothing calls this directly
no test coverage detected