New submission from Karthikeyan Singaravelan <tir.kar...@gmail.com>:
Related to warnings from issue39529 ./python -Wall -m test test_contextlib_async test_unittest 0:00:00 load avg: 0.91 Run tests sequentially 0:00:00 load avg: 0.91 [1/2] test_contextlib_async Task was destroyed but it is pending! task: <Task pending name='Task-12' coro=<<async_generator_athrow without __name__>()>> Task was destroyed but it is pending! task: <Task pending name='Task-14' coro=<<async_generator_athrow without __name__>()>> Task was destroyed but it is pending! task: <Task pending name='Task-20' coro=<<async_generator_athrow without __name__>()>> /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) /root/cpython/Lib/test/test_contextlib_async.py:372: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() /root/cpython/Lib/test/test_contextlib_async.py:374: DeprecationWarning: There is no current event loop f = asyncio.ensure_future(coro) 0:00:00 load avg: 0.91 [2/2] test_unittest /root/cpython/Lib/unittest/test/testmock/testasync.py:177: DeprecationWarning: There is no current event loop fut = asyncio.Future() == Tests result: SUCCESS == All 2 tests OK. Total duration: 6.5 sec Tests result: SUCCESS ---------- components: Tests, asyncio messages: 392780 nosy: asvetlov, serhiy.storchaka, vstinner, xtreak, yselivanov priority: normal severity: normal status: open title: Deprecation warning in tests over no current event loop type: behavior versions: Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44017> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com