Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gh-157415: Skip @support.nomemtest if Python is built with TSAN - #157416

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:tsan_skip_nomemtest
Sep 13, 2026
Merged

gh-157415: Skip @support.nomemtest if Python is built with TSAN#157416
vstinner merged 1 commit into
python:mainfrom
vstinner:tsan_skip_nomemtest

Conversation

@vstinner

@vstinner vstinner commented Sep 13, 2026

Copy link
Copy Markdown
Member

There is a known data race involving PyMem_SetAllocator(). Just skip tests using _testcapi.set_nomemory() is Python is built with the thread sanitizer.

Mark test_io.test_memoryio test using _testcapi.set_nomemory() with @support.nomemtest.

There is a known data race involving PyMem_SetAllocator(). Just skip
tests using _testcapi.set_nomemory() is Python is built with the
thread sanitizer.

Mark test_io.test_memoryio test using _testcapi.set_nomemory()
with @support.nomemtest.
@vstinner
vstinner merged commit e41677b into python:main Sep 13, 2026
56 checks passed
@vstinner
vstinner deleted the tsan_skip_nomemtest branch September 13, 2026 13:45
@vstinner

Copy link
Copy Markdown
Member Author

Merged. Thanks for review @kumaraditya303.

@vstinner

Copy link
Copy Markdown
Member Author

For the specific case of the TSan CI, there is no need to backport this change. The CI runs python -m test --tsan which only runs a subset of the test suite. In Python 3.15, this subset doesn't call _testcapi.set_nomemory().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants