[issue38608] Undocumented behavior that IsolatedAsyncioTestCase would enable event loop debug mode
Wei-Cheng Pan
report at bugs.python.org
Tue Oct 29 01:37:09 EDT 2019
Wei-Cheng Pan <legnaleurc at gmail.com> added the comment:
> Usually, it is a sign of a problem in user code, e.g. something should be pushed into executor.
Sometimes also happens on low-end CI machines.
And the message is somewhat unclear to me.
I have to grep cpython sources to understand that it is coming from debug mode and it means there is a slow awaitable ... in somewhere, because the displayed file:line is not always the right position.
> A test case is executed in debug mode. I think it is reasonable for the test run, isn't it?
Probably.
> The mode can be disabled by `asyncio.get_running_loop().set_debug(False)` in `asyncSetUp()` method.
Glad to know that. Thanks.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38608>
_______________________________________
More information about the Python-bugs-list
mailing list