regrtest: count also env changed as failures in progress (#3061) · python/cpython@b97d99c (original) (raw)
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -132,8 +132,9 @@ def display_progress(self, test_index, test): | ||
132 | 132 | |
133 | 133 | # "[ 51/405/1] test_tcl passed" |
134 | 134 | line = f"{test_index:{self.test_count_width}}{self.test_count}" |
135 | -if self.bad and not self.ns.pgo: | |
136 | -line = f"{line}/{len(self.bad)}" | |
135 | +fails = len(self.bad) + len(self.environment_changed) | |
136 | +if fails and not self.ns.pgo: | |
137 | +line = f"{line}/{fails}" | |
137 | 138 | line = f"[{line}] {test}" |
138 | 139 | |
139 | 140 | # add the system load prefix: "load avg: 1.80 " |