Issue #28613: Fix get_event_loop() to return the current loop

when called from coroutines or callbacks.
This commit is contained in:
Yury Selivanov 2016-11-04 14:29:28 -04:00
parent 1ea023e523
commit 600a349781
18 changed files with 126 additions and 2 deletions

View file

@ -18,6 +18,7 @@ from asyncio import test_utils
class SslProtoHandshakeTests(test_utils.TestCase):
def setUp(self):
super().setUp()
self.loop = asyncio.new_event_loop()
self.set_event_loop(self.loop)