https://github.com/python/cpython/commit/53f4cad43b87292aca163ea5a92d130bd024981d
commit: 53f4cad43b87292aca163ea5a92d130bd024981d
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-11-19T17:15:05Z
summary:
Display test header when running python -m test --tsan (#162249)
When running "python -m test" with --tsan or --tsan-parallel,
display the test header (log TSAN_OPTIONS env var).
files:
M Lib/test/libregrtest/main.py
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py
index 032cb94223a7e65..547ef232c204940 100644
--- a/Lib/test/libregrtest/main.py
+++ b/Lib/test/libregrtest/main.py
@@ -210,9 +210,11 @@ def find_tests(self, tests: TestList | None = None) ->
tuple[TestTuple, TestList
if self.tsan:
setup_tsan_tests(self.cmdline_args)
+ self.want_header = True
if self.tsan_parallel:
setup_tsan_parallel_tests(self.cmdline_args)
+ self.want_header = True
alltests = findtests(testdir=self.test_dir,
exclude=exclude_tests)
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]