Skip to content
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

Enable "asyncio debug mode" for default event loop #980

Open
p-rogalski opened this issue Nov 6, 2024 · 2 comments
Open

Enable "asyncio debug mode" for default event loop #980

p-rogalski opened this issue Nov 6, 2024 · 2 comments
Milestone

Comments

@p-rogalski
Copy link

The Python asyncio library has a debug mode, which is supposed to ease developing: https://docs.python.org/3/library/asyncio-dev.html#debug-mode

What about enabling this in pytest-asyncio for the default event loop? This could be made configurable via a config option.

@asvetlov
Copy link
Contributor

asvetlov commented Nov 6, 2024

I expect a lot of Executing <...> took 0.103 seconds warnings at least.

Adding a config option sound like a great idea though.

@seifertm
Copy link
Contributor

seifertm commented Nov 6, 2024

I would also support a PR that adds a config option (+command line option) to enable the debug mode.

Until then, you can use some of the existing means to enable debug mode, such as setting the PYTHONASYNCIODEBUG environment variable.

@seifertm seifertm added this to the v1.0 milestone Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants