Skip to content

Commit a9baac7

Browse files
committed
Display header when running python -m test --tsan
When running "python -m test" with --pgo, --tsan or --tsan-parallel, display the test header.
1 parent abbfbce commit a9baac7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Lib/test/libregrtest/main.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,15 @@ def find_tests(self, tests: TestList | None = None) -> tuple[TestTuple, TestList
207207
if self.pgo:
208208
# add default PGO tests if no tests are specified
209209
setup_pgo_tests(self.cmdline_args, self.pgo_extended)
210+
self.want_header = True
210211

211212
if self.tsan:
212213
setup_tsan_tests(self.cmdline_args)
214+
self.want_header = True
213215

214216
if self.tsan_parallel:
215217
setup_tsan_parallel_tests(self.cmdline_args)
218+
self.want_header = True
216219

217220
alltests = findtests(testdir=self.test_dir,
218221
exclude=exclude_tests)

0 commit comments

Comments
 (0)