Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix "Total test files" total and fix test_regrtest
  • Loading branch information
vstinner committed Sep 3, 2023
commit c7b7853888bf12aef9f05789fbb1ba7153d0368a
3 changes: 2 additions & 1 deletion Lib/test/libregrtest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,8 @@ def display_summary(self):
run = sum(map(len, all_tests))
text = f'run={run}'
if not forever:
text = f"{text}/{len(self.tests)}"
ntest = len(first_runtests.tests)
text = f"{text}/{ntest}"
if filtered:
text = f"{text} (filtered)"
report = [text]
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_regrtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def list_regex(line_format, tests):
('run_no_tests', len(run_no_tests)),
):
if ntest:
report.append(f'failed={ntest}')
report.append(f'{name}={ntest}')
line = fr'Total test files: {" ".join(report)}'
self.check_line(output, line, full=True)

Expand Down