New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_contextlib_async logs "Task was destroyed but it is pending" messages #89369
Comments
|
3 tests of test_contextlib_async logs messages. I would prefer a quiet output. test_contextmanager_trap_second_yield (test.test_contextlib_async.AsyncContextManagerTestCase) ... test_contextmanager_trap_yield_after_throw (test.test_contextlib_async.AsyncContextManagerTestCase) ... test_async_gen_propagates_generator_exit (test.test_contextlib_async.TestAbstractAsyncContextManager) ... 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 |
… test (pythonGH-93074) Use asyncio.run(). (cherry picked from commit d2ef66a) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
… test (pythonGH-93074) Use asyncio.run(). (cherry picked from commit d2ef66a) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
vstinner commentedSep 15, 2021
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: