summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-11-05 14:27:54 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-11-05 14:27:54 (GMT)
commit5239caf8358f8b8a77b26fa01bd8af0b7105e422 (patch)
tree61a6ff47c8bc750b8dc9043e764782f1a1ea999e /Lib/test
parenta5b335e62fad239f254b6197fa60daba6bd5e464 (diff)
parent004adb91f6e05ac711b0554bbd0415a48fed623c (diff)
downloadcpython-5239caf8358f8b8a77b26fa01bd8af0b7105e422.zip
cpython-5239caf8358f8b8a77b26fa01bd8af0b7105e422.tar.gz
cpython-5239caf8358f8b8a77b26fa01bd8af0b7105e422.tar.bz2
(Merge 3.4) asyncio: Move loop attribute to _FlowControlMixin
Move the _loop attribute from the constructor of _SelectorTransport, _ProactorBasePipeTransport and _UnixWritePipeTransport classes to the constructor of the _FlowControlMixin class. Add also an assertion to explicit that the parent class must ensure that the loop is defined (not None)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_asyncio/test_transports.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_transports.py b/Lib/test/test_asyncio/test_transports.py
index 5be1b7b..3b6e3d6 100644
--- a/Lib/test/test_asyncio/test_transports.py
+++ b/Lib/test/test_asyncio/test_transports.py
@@ -69,7 +69,8 @@ class TransportTests(unittest.TestCase):
def get_write_buffer_size(self):
return 512
- transport = MyTransport()
+ loop = mock.Mock()
+ transport = MyTransport(loop=loop)
transport._protocol = mock.Mock()
self.assertFalse(transport._protocol_paused)