]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-129441: Fix some flakiness in test_instrumentation (gh-141881) (gh-141914)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 24 Nov 2025 17:46:59 +0000 (18:46 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Nov 2025 17:46:59 +0000 (17:46 +0000)
commit9127013b56488606735cbf41c4e6cf2a7bcf11d2
tree257cf6417a6f9b628adc4434deb2c5ba4c3086b2
parent7905e85ecdaad7deea8108eeef0ac7e9d570b484
[3.13] gh-129441: Fix some flakiness in test_instrumentation (gh-141881) (gh-141914)

Most of the `self.assertTrue(self.called)` checks are flaky because
the worker threads may sometimes finish before the main thread calls
`self.during_threads()`.
(cherry picked from commit 71126ab19c76d8227fc3b9c7c59b957ca82af4dd)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Lib/test/test_free_threading/test_monitoring.py