Skip to content

Commit

Permalink
pythongh-109974: Fix more threading lock_tests race conditions
Browse files Browse the repository at this point in the history
* 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
1 parent 8b626a4 commit 68d5deb
Showing 1 changed file with 240 additions and 219 deletions.

0 comments on commit 68d5deb

Please sign in to comment.