summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest/main.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2015-10-02 23:20:49 (GMT)
committerBrett Cannon <brett@python.org>2015-10-02 23:20:49 (GMT)
commit11faa218438bebc56a6ea1db405b19ed5b554aa0 (patch)
treefbd49775bdbcda50090b33ed975c4ba8578ec35f /Lib/test/libregrtest/main.py
parent5f9d3acc5e8050a43c79cf4d2a373be67f3c27fc (diff)
parentbe7c1638e2bc837125efc18b7e9853caa7dc95bf (diff)
downloadcpython-11faa218438bebc56a6ea1db405b19ed5b554aa0.zip
cpython-11faa218438bebc56a6ea1db405b19ed5b554aa0.tar.gz
cpython-11faa218438bebc56a6ea1db405b19ed5b554aa0.tar.bz2
Merge from 3.5 for issue #25188.
Diffstat (limited to 'Lib/test/libregrtest/main.py')
-rw-r--r--Lib/test/libregrtest/main.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py
index 30d8a59..aa95b21 100644
--- a/Lib/test/libregrtest/main.py
+++ b/Lib/test/libregrtest/main.py
@@ -103,7 +103,10 @@ class Regrtest:
def display_progress(self, test_index, test):
if self.ns.quiet:
return
- fmt = "[{1:{0}}{2}/{3}] {4}" if self.bad else "[{1:{0}}{2}] {4}"
+ if self.bad and not self.ns.pgo:
+ fmt = "[{1:{0}}{2}/{3}] {4}"
+ else:
+ fmt = "[{1:{0}}{2}] {4}"
print(fmt.format(self.test_count_width, test_index,
self.test_count, len(self.bad), test),
flush=True)
@@ -238,6 +241,11 @@ class Regrtest:
print(count(len(omitted), "test"), "omitted:")
printlist(omitted)
+ # If running the test suite for PGO then no one cares about
+ # results.
+ if self.ns.pgo:
+ return
+
if self.good and not self.ns.quiet:
if (not self.bad
and not self.skipped
@@ -314,7 +322,7 @@ class Regrtest:
# For a partial run, we do not need to clutter the output.
if (self.ns.verbose
or self.ns.header
- or not (self.ns.quiet or self.ns.single
+ or not (self.ns.pgo or self.ns.quiet or self.ns.single
or self.tests or self.ns.args)):
# Print basic platform information
print("==", platform.python_implementation(), *sys.version.split())