This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2021-09-15.13:23:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631712197.72.0.810359664637.issue45206@roundup.psfhosted.org>
In-reply-to
Content
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
---
History
Date User Action Args
2021-09-15 13:23:17vstinnersetrecipients: + vstinner
2021-09-15 13:23:17vstinnersetmessageid: <1631712197.72.0.810359664637.issue45206@roundup.psfhosted.org>
2021-09-15 13:23:17vstinnerlinkissue45206 messages
2021-09-15 13:23:17vstinnercreate