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_asyncio leaks dangling threads #75433
Comments
Using PR 3138 of bpo-31234, I noticed that test_asyncio leaks dangling threads. Tests which randomly leak threads: Write this list into "tests" and run "python3 -m test --matchfile=tests". haypo@selma$ ./python -u -m test -v test_asyncio --matchfile=tests |
I proposed PR 3252 to only fix unit tests, but not asyncio. An alternative is to modify BaseEventLoop.close() to replace executor.shutdown(wait=False) with executor.shutdown(wait=True), but it would change the behaviour. I'm not sure if we want to wait until all threads complete on close()? |
I picked the safe option: only modify unit tests. |
Hum, EventLoopTestsMixin.tearDown() still has a bug. I reopen the issue. |
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: