[Python-checkins] regrtest: count also env changed as failures in progress (#3061)
Victor Stinner
webhook-mailer at python.org
Thu Aug 10 10:19:08 EDT 2017
https://github.com/python/cpython/commit/b97d99cd7f9546493ecc995f003f7b0ba4ba3a17
commit: b97d99cd7f9546493ecc995f003f7b0ba4ba3a17
branch: master
author: Victor Stinner <victor.stinner at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017年08月10日T16:19:03+02:00
summary:
regrtest: count also env changed as failures in progress (#3061)
files:
M Lib/test/libregrtest/main.py
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py
index bc8155bbff2..0b48bebb0d7 100644
--- a/Lib/test/libregrtest/main.py
+++ b/Lib/test/libregrtest/main.py
@@ -132,8 +132,9 @@ def display_progress(self, test_index, test):
# "[ 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 "
More information about the Python-checkins
mailing list