summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_pep492.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-11-04 18:29:28 (GMT)
committerYury Selivanov <yury@magic.io>2016-11-04 18:29:28 (GMT)
commit600a349781bfa0a8239e1cb95fac29c7c4a3302e (patch)
tree79f35114de7101a97fe85f80cd02cbd866d4abd9 /Lib/test/test_asyncio/test_pep492.py
parent1ea023e523f484955fb81b59a72c586845d8d97f (diff)
downloadcpython-600a349781bfa0a8239e1cb95fac29c7c4a3302e.zip
cpython-600a349781bfa0a8239e1cb95fac29c7c4a3302e.tar.gz
cpython-600a349781bfa0a8239e1cb95fac29c7c4a3302e.tar.bz2
Issue #28613: Fix get_event_loop() to return the current loop
when called from coroutines or callbacks.
Diffstat (limited to 'Lib/test/test_asyncio/test_pep492.py')
-rw-r--r--Lib/test/test_asyncio/test_pep492.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_pep492.py b/Lib/test/test_asyncio/test_pep492.py
index 29aba81..d5b8522 100644
--- a/Lib/test/test_asyncio/test_pep492.py
+++ b/Lib/test/test_asyncio/test_pep492.py
@@ -17,6 +17,7 @@ from asyncio import test_utils
class BaseTest(test_utils.TestCase):
def setUp(self):
+ super().setUp()
self.loop = asyncio.BaseEventLoop()
self.loop._process_events = mock.Mock()
self.loop._selector = mock.Mock()