Skip to content

Commit

Permalink
pythongh-109974: Fix more threading lock_tests race conditions (pytho…
Browse files Browse the repository at this point in the history
…n#110089)

* 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.

(cherry picked from commit 743e357)
  • Loading branch information
vstinner committed Oct 4, 2023
1 parent f72c926 commit 8a4668a
Show file tree
Hide file tree
Showing 2 changed files with 257 additions and 230 deletions.

0 comments on commit 8a4668a

Please sign in to comment.