Commits

Florent Xicluna committed bdf6d76

Do not print the header lines when running a single test.

  • Participants
  • Parent commits d0bbbf3
  • Branches legacy-trunk

Comments (0)

Files changed (2)

Lib/test/regrtest.py

     resource_denieds = []
     environment_changed = []
 
-    if not quiet:
-        # Print basic platform information
-        print "==", platform.python_implementation(), \
-                    " ".join(sys.version.split())
-        print "==  ", platform.platform(aliased=True)
-        print "==  ", os.getcwd()
-
     if findleaks:
         try:
             import gc
                 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(), \
+                    " ".join(sys.version.split())
+        print "==  ", platform.platform(aliased=True)
+        print "==  ", os.getcwd()
+
     alltests = findtests(testdir, stdtests, nottests)
     tests = tests or args or alltests
     if single:
 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.