| commit | 743e3572ee940a6cf88fd518e5f4a447905ba5eb | [log] [tgz] |
|---|---|---|
| author | Victor Stinner <vstinner@python.org> | Fri Sep 29 14:21:18 2023 +0200 |
| committer | GitHub <noreply@github.com> | Fri Sep 29 12:21:18 2023 +0000 |
| tree | 870c89c862bb7ccc96db199468791a96ea7f7484 | |
| parent | 501939c9c1433c5b95ca19ae752e5881149f61b9 [diff] |
gh-109974: Fix more threading lock_tests race conditions (#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.