https://github.com/python/cpython/commit/18249d938335312d618a3962ec7590bea709d58e
commit: 18249d938335312d618a3962ec7590bea709d58e
branch: main
author: Sam Gross <colesb...@gmail.com>
committer: colesbury <colesb...@gmail.com>
date: 2025-03-22T11:46:36-04:00
summary:

gh-131566: Skip `test_tracemalloc_track_race` under TSAN (gh-131567)

The test has data race when setting the global "raw" memory allocator.

files:
M Lib/test/test_tracemalloc.py

diff --git a/Lib/test/test_tracemalloc.py b/Lib/test/test_tracemalloc.py
index 0220a83d24b428..6dc6880ff8c356 100644
--- a/Lib/test/test_tracemalloc.py
+++ b/Lib/test/test_tracemalloc.py
@@ -1114,6 +1114,7 @@ def test_stop_untrack(self):
     @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()

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to