8000 gh-109974: Fix more threading lock_tests race conditions by vstinner · Pull Request #110089 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-109974: Fix more threading lock_tests race conditions #110089

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

Merged
merged 2 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-109974: Fix more threading lock_tests race conditions
* Add context manager on Bunch class.
* Bunch now catchs exceptions on executed functions and re-raise them
  at __exit__() as an ExceptionGroup.
* Rewrite BarrierProxy.test_default_timeout(). Use a single thread.
  Only check that barrier.wait() blocks for at least default timeout
  seconds.
* test_with(): inline _with() function.
  • Loading branch information
vstinner committed Sep 29, 2023
commit 717369638e501d3f6493105df055092825183e67
Loading
0