]> granicus.if.org Git - python/commitdiff
asyncio: test_base_events: use mock.Mock instead of unittest.mock.Mock to
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 20 May 2014 13:57:08 +0000 (15:57 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 20 May 2014 13:57:08 +0000 (15:57 +0200)
simplify the synchronization with Trollius

Lib/test/test_asyncio/test_base_events.py

index 544bd3dde14c8a3f750efe7527de7f7c1d0254b4..4ba95565dae8ba7c2b382a63e23cfc78f40f7ab7 100644 (file)
@@ -141,7 +141,7 @@ class BaseEventLoopTests(unittest.TestCase):
             pass
 
         other_loop = base_events.BaseEventLoop()
-        other_loop._selector = unittest.mock.Mock()
+        other_loop._selector = mock.Mock()
         asyncio.set_event_loop(other_loop)
 
         # raise RuntimeError if the event loop is different in debug mode