diff options
Diffstat (limited to 'Lib/test/test_subprocess.py')
| -rw-r--r-- | Lib/test/test_subprocess.py | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 7437e6c..cd378a2 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -673,14 +673,16 @@ class POSIXProcessTestCase(unittest.TestCase):          self.assertNotEqual(p.wait(), 0)      def test_kill(self): -        p = subprocess.Popen([sys.executable, "-c", "input()"]) +        p = subprocess.Popen([sys.executable, "-c", "input()"], +                             stdin=subprocess.PIPE, close_fds=True)          self.assertIsNone(p.poll())          p.kill()          self.assertEqual(p.wait(), -signal.SIGKILL)      def test_terminate(self): -        p = subprocess.Popen([sys.executable, "-c", "input()"]) +        p = subprocess.Popen([sys.executable, "-c", "input()"], +                             stdin=subprocess.PIPE, close_fds=True)          self.assertIsNone(p.poll())          p.terminate()  | 
