[Python-checkins] r78733 - in python/branches/py3k: Lib/test/regrtest.py Misc/NEWS

florent.xicluna python-checkins at python.org
Sat Mar 6 18:34:49 CET 2010


Author: florent.xicluna
Date: Sat Mar  6 18:34:48 2010
New Revision: 78733

Log:
Merged revisions 78732 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78732 | florent.xicluna | 2010-03-06 18:24:36 +0100 (sam, 06 mar 2010) | 2 lines
  
  Do not print the header lines when running a single test.
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Lib/test/regrtest.py
   python/branches/py3k/Misc/NEWS

Modified: python/branches/py3k/Lib/test/regrtest.py
==============================================================================
--- python/branches/py3k/Lib/test/regrtest.py	(original)
+++ python/branches/py3k/Lib/test/regrtest.py	Sat Mar  6 18:34:48 2010
@@ -399,12 +399,6 @@
     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 @@
                 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:

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS	(original)
+++ python/branches/py3k/Misc/NEWS	Sat Mar  6 18:34:48 2010
@@ -845,6 +845,9 @@
 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.
 


More information about the Python-checkins mailing list