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_subprocess.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_subprocess.py')
-rw-r--r-- | Lib/test/test_asyncio/test_subprocess.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index 1531023..bba688b 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -35,6 +35,7 @@ class TestSubprocessTransport(base_subprocess.BaseSubprocessTransport): class SubprocessTransportTests(test_utils.TestCase): def setUp(self): + super().setUp() self.loop = self.new_test_loop() self.set_event_loop(self.loop) @@ -466,6 +467,7 @@ if sys.platform != 'win32': Watcher = None def setUp(self): + super().setUp() policy = asyncio.get_event_loop_policy() self.loop = policy.new_event_loop() self.set_event_loop(self.loop) @@ -490,6 +492,7 @@ else: class SubprocessProactorTests(SubprocessMixin, test_utils.TestCase): def setUp(self): + super().setUp() self.loop = asyncio.ProactorEventLoop() self.set_event_loop(self.loop) |