Skip to content

Commit 673c3dd

Browse files
committed
In the regular logger, also colorize the test duration reported when
long-running tests finish.
1 parent 643b289 commit 673c3dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/libregrtest/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def update_progress(self, test_index: int, result: TestResult|None,
134134
if (result is not None and not self._pgo and
135135
result.duration is not None and
136136
result.duration >= PROGRESS_MIN_TIME):
137-
text = f"{text} ({format_duration(result.duration)})"
137+
text = f"{text} ({self.warning(format_duration(result.duration))})"
138138
if error_text:
139139
text = f"{text} ({self.error(error_text)})"
140140

0 commit comments

Comments
 (0)