Issue #22685, asyncio: mock also resume_reading in test_pause_reading()

This commit is contained in:
Victor Stinner 2014-11-28 22:37:16 +01:00
parent bb44fe0a0b
commit ddf3bc9078
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ class SubprocessMixin:
loop=self.loop) loop=self.loop)
stdout_transport = proc._transport.get_pipe_transport(1) stdout_transport = proc._transport.get_pipe_transport(1)
stdout_transport.pause_reading = mock.Mock() stdout_transport.pause_reading = mock.Mock()
stdout_transport.resume_reading = mock.Mock()
stdout, stderr = yield from proc.communicate() stdout, stderr = yield from proc.communicate()