]> granicus.if.org Git - python/commitdiff
regrtest: count also env changed as failures in progress (#3061)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 10 Aug 2017 14:19:03 +0000 (16:19 +0200)
committerGitHub <noreply@github.com>
Thu, 10 Aug 2017 14:19:03 +0000 (16:19 +0200)
Lib/test/libregrtest/main.py

index bc8155bbff2b478a5de50ef84ee55e9dc84753ee..0b48bebb0d7f1e12d3e828ddfdc6cd26d3cf3f95 100644 (file)
@@ -132,8 +132,9 @@ class Regrtest:
 
         # "[ 51/405/1] test_tcl passed"
         line = f"{test_index:{self.test_count_width}}{self.test_count}"
-        if self.bad and not self.ns.pgo:
-            line = f"{line}/{len(self.bad)}"
+        fails = len(self.bad) + len(self.environment_changed)
+        if fails and not self.ns.pgo:
+            line = f"{line}/{fails}"
         line = f"[{line}] {test}"
 
         # add the system load prefix: "load avg: 1.80 "