Skip to content

Commit 53f4cad

Browse files
authored
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).
1 parent 0b5e26c commit 53f4cad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Lib/test/libregrtest/main.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,11 @@ def find_tests(self, tests: TestList | None = None) -> tuple[TestTuple, TestList
210210

211211
if self.tsan:
212212
setup_tsan_tests(self.cmdline_args)
213+
self.want_header = True
213214

214215
if self.tsan_parallel:
215216
setup_tsan_parallel_tests(self.cmdline_args)
217+
self.want_header = True
216218

217219
alltests = findtests(testdir=self.test_dir,
218220
exclude=exclude_tests)

0 commit comments

Comments
 (0)