summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_subprocess.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 24c3bf9..b5ad6ba 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -671,14 +671,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()