summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-03-06 17:34:48 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-03-06 17:34:48 (GMT)
commit0e62a1488b4ba9617d659a37443238f3c1f2b506 (patch)
treecbb76c3463e0e3549e6a9a5f8c928845eb9a5e71 /Lib
parentb92ed7cf3673cd9902b785febb895b4e0c7a55ff (diff)
downloadcpython-0e62a1488b4ba9617d659a37443238f3c1f2b506.zip
cpython-0e62a1488b4ba9617d659a37443238f3c1f2b506.tar.gz
cpython-0e62a1488b4ba9617d659a37443238f3c1f2b506.tar.bz2
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. ........
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/regrtest.py14
1 files changed, 8 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: