summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-03-06 17:24:36 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-03-06 17:24:36 (GMT)
commit58526417ed778df681db17fbabbf0d86fe3c9b67 (patch)
tree66d82482edfcd0257f32e801d2471e5e37c21b3d /Lib
parent1adbee226e64dabe85e5775e62865b6a42096c04 (diff)
downloadcpython-58526417ed778df681db17fbabbf0d86fe3c9b67.zip
cpython-58526417ed778df681db17fbabbf0d86fe3c9b67.tar.gz
cpython-58526417ed778df681db17fbabbf0d86fe3c9b67.tar.bz2
Do not print the header lines when running a single test.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/regrtest.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index b7fc875..0f58208 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -374,13 +374,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(), \
- " ".join(sys.version.split())
- print "== ", platform.platform(aliased=True)
- print "== ", os.getcwd()
-
if findleaks:
try:
import gc
@@ -425,6 +418,15 @@ 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(), \
+ " ".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: