[New-bugs-announce] [issue44017] Deprecation warning in tests over no current event loop
Karthikeyan Singaravelan
report at bugs.python.org
Mon May 3 04:17:27 EDT 2021
New submission from Karthikeyan Singaravelan <tir.karthi at 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 <report at bugs.python.org>
<https://bugs.python.org/issue44017>
_______________________________________
More information about the New-bugs-announce
mailing list