[New-bugs-announce] [issue45206] test_contextlib_async logs "Task was destroyed but it is pending" messages
STINNER Victor
report at bugs.python.org
Wed Sep 15 09:23:17 EDT 2021
New submission from STINNER Victor <vstinner at python.org>:
3 tests of test_contextlib_async logs messages. I would prefer a quiet output.
test_contextmanager_trap_second_yield (test.test_contextlib_async.AsyncContextManagerTestCase) ...
Task was destroyed but it is pending!
task: <Task pending name='Task-12' coro=<<async_generator_athrow without __name__>()>>
ok
test_contextmanager_trap_yield_after_throw (test.test_contextlib_async.AsyncContextManagerTestCase) ...
Task was destroyed but it is pending!
task: <Task pending name='Task-14' coro=<<async_generator_athrow without __name__>()>>
ok
test_async_gen_propagates_generator_exit (test.test_contextlib_async.TestAbstractAsyncContextManager) ...
Task was destroyed but it is pending!
task: <Task pending name='Task-20' coro=<<async_generator_athrow without __name__>()>>
ok
Current output:
---
$ ./python -m test test_contextlib_async
0:00:00 load avg: 12.33 Run tests sequentially
0:00:00 load avg: 12.33 [1/1] 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__>()>>
== Tests result: SUCCESS ==
1 test OK.
Total duration: 837 ms
Tests result: SUCCESS
---
----------
components: Tests
messages: 401834
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_contextlib_async logs "Task was destroyed but it is pending" messages
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45206>
_______________________________________
More information about the New-bugs-announce
mailing list