]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-131566: Skip `test_tracemalloc_track_race` under TSAN (gh-131567)
authorSam Gross <colesbury@gmail.com>
Sat, 22 Mar 2025 15:46:36 +0000 (11:46 -0400)
committerGitHub <noreply@github.com>
Sat, 22 Mar 2025 15:46:36 +0000 (11:46 -0400)
The test has data race when setting the global "raw" memory allocator.

Lib/test/test_tracemalloc.py

index 0220a83d24b428e7edd8881442f1a2908129c611..6dc6880ff8c356a6fa3a8a541e1bafc579119fc1 100644 (file)
@@ -1114,6 +1114,7 @@ class TestCAPI(unittest.TestCase):
     @threading_helper.requires_working_threading()
     # gh-128679: Test crash on a debug build (especially on FreeBSD).
     @unittest.skipIf(support.Py_DEBUG, 'need release build')
+    @support.skip_if_sanitizer('gh-131566: race when setting allocator', thread=True)
     def test_tracemalloc_track_race(self):
         # gh-128679: Test fix for tracemalloc.stop() race condition
         _testcapi.tracemalloc_track_race()