From 600a349781bfa0a8239e1cb95fac29c7c4a3302e Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Fri, 4 Nov 2016 14:29:28 -0400 Subject: Issue #28613: Fix get_event_loop() to return the current loop when called from coroutines or callbacks. --- Lib/test/test_asyncio/test_futures.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lib/test/test_asyncio/test_futures.py') diff --git a/Lib/test/test_asyncio/test_futures.py b/Lib/test/test_asyncio/test_futures.py index d20eb687f9..153b8ed707 100644 --- a/Lib/test/test_asyncio/test_futures.py +++ b/Lib/test/test_asyncio/test_futures.py @@ -79,6 +79,7 @@ class DuckFuture: class DuckTests(test_utils.TestCase): def setUp(self): + super().setUp() self.loop = self.new_test_loop() self.addCleanup(self.loop.close) @@ -96,6 +97,7 @@ class DuckTests(test_utils.TestCase): class FutureTests(test_utils.TestCase): def setUp(self): + super().setUp() self.loop = self.new_test_loop() self.addCleanup(self.loop.close) @@ -468,6 +470,7 @@ class FutureTests(test_utils.TestCase): class FutureDoneCallbackTests(test_utils.TestCase): def setUp(self): + super().setUp() self.loop = self.new_test_loop() def run_briefly(self): -- cgit v1.2.1