(self)
| 1615 | results) |
| 1616 | |
| 1617 | def test_issue8780(self): |
| 1618 | # Ensure that stdout is inherited from the parent |
| 1619 | # if stdout=PIPE is not used |
| 1620 | code = ';'.join(( |
| 1621 | 'import subprocess, sys', |
| 1622 | 'retcode = subprocess.call(' |
| 1623 | "[sys.executable, '-c', 'print(\"Hello World!\")'])", |
| 1624 | 'assert retcode == 0')) |
| 1625 | output = subprocess.check_output([sys.executable, '-c', code]) |
| 1626 | self.assertStartsWith(output, b'Hello World!') |
| 1627 | |
| 1628 | def test_handles_closed_on_exception(self): |
| 1629 | # If CreateProcess exits with an error, ensure the |
nothing calls this directly
no test coverage detected