From: Sam Gross Date: Sat, 22 Mar 2025 15:46:36 +0000 (-0400) Subject: gh-131566: Skip `test_tracemalloc_track_race` under TSAN (gh-131567) X-Git-Tag: v3.14.0a7~246 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18249d938335312d618a3962ec7590bea709d58e;p=thirdparty%2FPython%2Fcpython.git gh-131566: Skip `test_tracemalloc_track_race` under TSAN (gh-131567) The test has data race when setting the global "raw" memory allocator. --- diff --git a/Lib/test/test_tracemalloc.py b/Lib/test/test_tracemalloc.py index 0220a83d24b4..6dc6880ff8c3 100644 --- a/Lib/test/test_tracemalloc.py +++ b/Lib/test/test_tracemalloc.py @@ -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()