(self, pre_args, **kwargs)
| 357 | self.assertEqual(p.stderr, None) |
| 358 | |
| 359 | def _assert_python(self, pre_args, **kwargs): |
| 360 | # We include sys.exit() to prevent the test runner from hanging |
| 361 | # whenever python is found. |
| 362 | args = pre_args + ["import sys; sys.exit(47)"] |
| 363 | p = subprocess.Popen(args, **kwargs) |
| 364 | p.wait() |
| 365 | self.assertEqual(47, p.returncode) |
| 366 | |
| 367 | def test_executable(self): |
| 368 | # Check that the executable argument works. |
no test coverage detected