Erlend E. Aasland <erlend.aasl...@innova.no> added the comment:
FTR, a rough grep for other users of get_event_loop in Lib/test (some false positives): ``` $ grep -rE "\<get_event_loop\>" Lib/test Lib/test/test_contextlib_async.py: loop = asyncio.get_event_loop_policy().get_event_loop() Lib/test/test_asyncio/test_base_events.py: 'loop = asyncio.get_event_loop()', Lib/test/test_asyncio/test_windows_events.py: loop = asyncio.get_event_loop() Lib/test/test_asyncio/test_runners.py: def get_event_loop(self): Lib/test/test_asyncio/test_runners.py: loop = asyncio.get_event_loop() Lib/test/test_asyncio/test_unix_events.py: self.assertIsInstance(policy.get_event_loop(), Lib/test/test_asyncio/test_unix_events.py: policy.get_event_loop().close() Lib/test/test_asyncio/test_unix_events.py: loop = policy.get_event_loop() Lib/test/test_asyncio/test_events.py: self.assertRaises(NotImplementedError, policy.get_event_loop) Lib/test/test_asyncio/test_events.py: loop = policy.get_event_loop() Lib/test/test_asyncio/test_events.py: self.assertIs(loop, policy.get_event_loop()) Lib/test/test_asyncio/test_events.py: loop = policy.get_event_loop() Lib/test/test_asyncio/test_events.py: self.assertRaises(RuntimeError, policy.get_event_loop) Lib/test/test_asyncio/test_events.py: self.assertRaises(RuntimeError, policy.get_event_loop) Lib/test/test_asyncio/test_events.py: old_loop = policy.get_event_loop() Lib/test/test_asyncio/test_events.py: self.assertIs(loop, policy.get_event_loop()) Lib/test/test_asyncio/test_events.py: self.assertIsNot(old_loop, policy.get_event_loop()) Lib/test/test_asyncio/test_events.py: self.get_event_loop_saved = events.get_event_loop Lib/test/test_asyncio/test_events.py: events.get_event_loop = type(self).get_event_loop_impl Lib/test/test_asyncio/test_events.py: asyncio.get_event_loop = type(self).get_event_loop_impl Lib/test/test_asyncio/test_events.py: events.get_event_loop = self.get_event_loop_saved Lib/test/test_asyncio/test_events.py: asyncio.get_event_loop = self.get_event_loop_saved Lib/test/test_asyncio/test_events.py: def get_event_loop(self): Lib/test/test_asyncio/test_events.py: asyncio.get_event_loop() Lib/test/test_asyncio/test_events.py: asyncio.get_event_loop() Lib/test/test_asyncio/test_events.py: self.assertIs(asyncio.get_event_loop(), loop) Lib/test/test_asyncio/test_events.py: asyncio.get_event_loop() Lib/test/test_asyncio/test_events.py: asyncio.get_event_loop() Lib/test/test_asyncio/test_events.py: loop2 = asyncio.get_event_loop() Lib/test/test_asyncio/test_events.py: asyncio.get_event_loop() Lib/test/test_asyncio/test_events.py: self.assertIs(asyncio.get_event_loop(), loop) Lib/test/test_asyncio/test_events.py: self.assertIs(asyncio.get_event_loop(), loop) Lib/test/test_asyncio/test_events.py: asyncio.get_event_loop() ``` ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46340> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com