(self)
| 1813 | self.assertEqual(cp.returncode, 0) |
| 1814 | |
| 1815 | def test_timeout(self): |
| 1816 | # run() function with timeout argument; we want to test that the child |
| 1817 | # process gets killed when the timeout expires. If the child isn't |
| 1818 | # killed, this call will deadlock since subprocess.run waits for the |
| 1819 | # child. |
| 1820 | with self.assertRaises(subprocess.TimeoutExpired): |
| 1821 | self.run_python("while True: pass", timeout=0.0001) |
| 1822 | |
| 1823 | def test_capture_stdout(self): |
| 1824 | # capture stdout with zero return code |
nothing calls this directly
no test coverage detected