mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Fix sporadic test_subprocess regression introduced by 834650d63130.
This commit is contained in:
parent
679be99a85
commit
e7ad419058
1 changed files with 2 additions and 2 deletions
|
@ -688,8 +688,8 @@ class ProcessTestCase(BaseTestCase):
|
||||||
|
|
||||||
def test_poll(self):
|
def test_poll(self):
|
||||||
p = subprocess.Popen([sys.executable, "-c",
|
p = subprocess.Popen([sys.executable, "-c",
|
||||||
"import os",
|
"import os; os.read(0, 1)"],
|
||||||
"os.read(1)"], stdin=subprocess.PIPE)
|
stdin=subprocess.PIPE)
|
||||||
self.addCleanup(p.stdin.close)
|
self.addCleanup(p.stdin.close)
|
||||||
self.assertIsNone(p.poll())
|
self.assertIsNone(p.poll())
|
||||||
os.write(p.stdin.fileno(), b'A')
|
os.write(p.stdin.fileno(), b'A')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue