summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xLib/test/regrtest.py14
-rw-r--r--Misc/NEWS3
2 files changed, 11 insertions, 6 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 8322281..9f631f4 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -399,12 +399,6 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
resource_denieds = []
environment_changed = []
- if not quiet:
- # Print basic platform information
- print("==", platform.python_implementation(), *sys.version.split())
- print("== ", platform.platform(aliased=True))
- print("== ", os.getcwd())
-
if findleaks:
try:
import gc
@@ -449,6 +443,14 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
stdtests.remove(arg)
nottests.add(arg)
args = []
+
+ # For a partial run, we do not need to clutter the output.
+ if verbose or not (quiet or tests or args):
+ # Print basic platform information
+ print("==", platform.python_implementation(), *sys.version.split())
+ print("== ", platform.platform(aliased=True))
+ print("== ", os.getcwd())
+
alltests = findtests(testdir, stdtests, nottests)
tests = tests or args or alltests
if single:
diff --git a/Misc/NEWS b/Misc/NEWS
index 12a8f38..bb4dcf4 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -845,6 +845,9 @@ Documentation
Tests
-----
+- Print platform information when running the whole test suite, or using
+ the --verbose flag.
+
- Issue #767675: enable test_pep277 on POSIX platforms with Unicode-friendly
filesystem encoding.