diff options
| author | Yury Selivanov <yury@magic.io> | 2017-12-23 20:04:15 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-23 20:04:15 (GMT) |
| commit | ca9b36cd1a384e5ecb56d9df9a59144240353ef0 (patch) | |
| tree | 3efb5c02ae40b61eb5c6391d3144d0f2f26cd616 /Lib/test/test_asyncio/test_futures.py | |
| parent | 558aa30f7971e087c4a00b1f49cc2ef3195c01ca (diff) | |
| download | cpython-ca9b36cd1a384e5ecb56d9df9a59144240353ef0.zip cpython-ca9b36cd1a384e5ecb56d9df9a59144240353ef0.tar.gz cpython-ca9b36cd1a384e5ecb56d9df9a59144240353ef0.tar.bz2 | |
bpo-32415: Add asyncio.Task.get_loop() and Future.get_loop() (#4992)
Diffstat (limited to 'Lib/test/test_asyncio/test_futures.py')
| -rw-r--r-- | Lib/test/test_asyncio/test_futures.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_futures.py b/Lib/test/test_asyncio/test_futures.py index 5652a42..f777a42 100644 --- a/Lib/test/test_asyncio/test_futures.py +++ b/Lib/test/test_asyncio/test_futures.py @@ -139,6 +139,7 @@ class BaseFutureTests: asyncio.set_event_loop(self.loop) f = self._new_future() self.assertIs(f._loop, self.loop) + self.assertIs(f.get_loop(), self.loop) def test_constructor_positional(self): # Make sure Future doesn't accept a positional argument |
