mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Patch by Ben Hayden.
This commit is contained in:
parent
89461ef8fc
commit
b8a5769a6d
3 changed files with 5 additions and 0 deletions
|
@ -874,6 +874,7 @@ class ProcessTestCase(BaseTestCase):
|
|||
stdout=subprocess.PIPE,
|
||||
bufsize=0)
|
||||
f = p.stdout
|
||||
self.addCleanup(f.close)
|
||||
try:
|
||||
self.assertEqual(f.read(4), b"appl")
|
||||
self.assertIn(f, select.select([f], [], [], 0.0)[0])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue