Commit 0e62a148 authored by Florent Xicluna's avatar Florent Xicluna

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.
........
parent b92ed7cf
...@@ -399,12 +399,6 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, ...@@ -399,12 +399,6 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
resource_denieds = [] resource_denieds = []
environment_changed = [] 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: if findleaks:
try: try:
import gc import gc
...@@ -449,6 +443,14 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, ...@@ -449,6 +443,14 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
stdtests.remove(arg) stdtests.remove(arg)
nottests.add(arg) nottests.add(arg)
args = [] 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) alltests = findtests(testdir, stdtests, nottests)
tests = tests or args or alltests tests = tests or args or alltests
if single: if single:
......
...@@ -845,6 +845,9 @@ Documentation ...@@ -845,6 +845,9 @@ Documentation
Tests 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 - Issue #767675: enable test_pep277 on POSIX platforms with Unicode-friendly
filesystem encoding. filesystem encoding.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment