diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-29 12:21:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-29 12:21:18 (GMT) |
commit | 743e3572ee940a6cf88fd518e5f4a447905ba5eb (patch) | |
tree | 870c89c862bb7ccc96db199468791a96ea7f7484 /Python/Python-tokenize.c | |
parent | 501939c9c1433c5b95ca19ae752e5881149f61b9 (diff) | |
download | cpython-743e3572ee940a6cf88fd518e5f4a447905ba5eb.zip cpython-743e3572ee940a6cf88fd518e5f4a447905ba5eb.tar.gz cpython-743e3572ee940a6cf88fd518e5f4a447905ba5eb.tar.bz2 |
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.
Diffstat (limited to 'Python/Python-tokenize.c')
0 files changed, 0 insertions, 0 deletions