(self)
| 919 | subprocess.Popen(ZERO_RETURN_CMD, env=newenv) |
| 920 | |
| 921 | def test_communicate_stdin(self): |
| 922 | p = subprocess.Popen([sys.executable, "-c", |
| 923 | 'import sys;' |
| 924 | 'sys.exit(sys.stdin.read() == "pear")'], |
| 925 | stdin=subprocess.PIPE) |
| 926 | p.communicate(b"pear") |
| 927 | self.assertEqual(p.returncode, 1) |
| 928 | |
| 929 | def test_communicate_stdout(self): |
| 930 | p = subprocess.Popen([sys.executable, "-c", |
nothing calls this directly
no test coverage detected