diff options
author | Yury Selivanov <yury@magic.io> | 2016-11-04 18:29:28 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-11-04 18:29:28 (GMT) |
commit | 600a349781bfa0a8239e1cb95fac29c7c4a3302e (patch) | |
tree | 79f35114de7101a97fe85f80cd02cbd866d4abd9 /Lib/test/test_asyncio/test_locks.py | |
parent | 1ea023e523f484955fb81b59a72c586845d8d97f (diff) | |
download | cpython-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_locks.py')
-rw-r--r-- | Lib/test/test_asyncio/test_locks.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_locks.py b/Lib/test/test_asyncio/test_locks.py index e557212..152948c 100644 --- a/Lib/test/test_asyncio/test_locks.py +++ b/Lib/test/test_asyncio/test_locks.py @@ -19,6 +19,7 @@ RGX_REPR = re.compile(STR_RGX_REPR) class LockTests(test_utils.TestCase): def setUp(self): + super().setUp() self.loop = self.new_test_loop() def test_ctor_loop(self): @@ -235,6 +236,7 @@ class LockTests(test_utils.TestCase): class EventTests(test_utils.TestCase): def setUp(self): + super().setUp() self.loop = self.new_test_loop() def test_ctor_loop(self): @@ -364,6 +366,7 @@ class EventTests(test_utils.TestCase): class ConditionTests(test_utils.TestCase): def setUp(self): + super().setUp() self.loop = self.new_test_loop() def test_ctor_loop(self): @@ -699,6 +702,7 @@ class ConditionTests(test_utils.TestCase): class SemaphoreTests(test_utils.TestCase): def setUp(self): + super().setUp() self.loop = self.new_test_loop() def test_ctor_loop(self): |