Kaydet (Commit) dd8224e6 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #22685: Fix test_pause_reading() of asyncio test_subprocess

* mock also resume_reading()
* ensure that resume_reading() is called
üst fe22e098
......@@ -181,6 +181,7 @@ class SubprocessMixin:
loop=self.loop)
stdout_transport = proc._transport.get_pipe_transport(1)
stdout_transport.pause_reading = mock.Mock()
stdout_transport.resume_reading = mock.Mock()
stdout, stderr = yield from proc.communicate()
......@@ -195,6 +196,7 @@ class SubprocessMixin:
self.assertEqual(stdout, b'x' * size)
self.assertTrue(transport.pause_reading.called)
self.assertTrue(transport.resume_reading.called)
if sys.platform != 'win32':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment