diff options
author | Yury Selivanov <yury@magic.io> | 2016-11-04 18:30:11 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-11-04 18:30:11 (GMT) |
commit | 69312fa4a2712b3ff37e473c833a42162aa9b5cd (patch) | |
tree | 008bb64b7ee485a5031e94744ecf5fa22f51cf3d /Lib/test/test_asyncio/test_tasks.py | |
parent | 4b8eb7b8b4d2d4c2c900f0931d475ffa951d3215 (diff) | |
parent | 600a349781bfa0a8239e1cb95fac29c7c4a3302e (diff) | |
download | cpython-69312fa4a2712b3ff37e473c833a42162aa9b5cd.zip cpython-69312fa4a2712b3ff37e473c833a42162aa9b5cd.tar.gz cpython-69312fa4a2712b3ff37e473c833a42162aa9b5cd.tar.bz2 |
Merge 3.5 (issue #28613)
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r-- | Lib/test/test_asyncio/test_tasks.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index d8862fc..ad8210b 100644 --- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -87,6 +87,7 @@ class BaseTaskTests: return self.__class__.Future(loop=loop) def setUp(self): + super().setUp() self.loop = self.new_test_loop() self.loop.set_task_factory(self.new_task) self.loop.create_future = lambda: self.new_future(self.loop) @@ -2104,6 +2105,7 @@ class GenericTaskTests(test_utils.TestCase): class GatherTestsBase: def setUp(self): + super().setUp() self.one_loop = self.new_test_loop() self.other_loop = self.new_test_loop() self.set_event_loop(self.one_loop, cleanup=False) @@ -2387,6 +2389,7 @@ class RunCoroutineThreadsafeTests(test_utils.TestCase): """Test case for asyncio.run_coroutine_threadsafe.""" def setUp(self): + super().setUp() self.loop = asyncio.new_event_loop() self.set_event_loop(self.loop) # Will cleanup properly @@ -2477,12 +2480,14 @@ class RunCoroutineThreadsafeTests(test_utils.TestCase): class SleepTests(test_utils.TestCase): def setUp(self): + super().setUp() self.loop = asyncio.new_event_loop() asyncio.set_event_loop(None) def tearDown(self): self.loop.close() self.loop = None + super().tearDown() def test_sleep_zero(self): result = 0 |