]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-129441: Fix some flakiness in test_instrumentation (gh-141881) (gh-141913)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 24 Nov 2025 16:44:54 +0000 (17:44 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Nov 2025 16:44:54 +0000 (16:44 +0000)
commitf8b0c902084be40edb1cbdf67f4624b2d2e4444d
treefca4b2d6b37a741ceb87637ca1c7028723c5c39f
parentcabaa47668a4ad83d6a1af1886b7da38785bfe95
[3.14] gh-129441: Fix some flakiness in test_instrumentation (gh-141881) (gh-141913)

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