[Python-checkins] r78720 - python/trunk/Lib/test/regrtest.py
florent.xicluna
python-checkins at python.org
Sat Mar 6 10:11:55 CET 2010
Author: florent.xicluna
Date: Sat Mar 6 10:11:55 2010
New Revision: 78720
Log:
Print platform information to stdout, to help troubleshooting platform-specific failures.
Modified:
python/trunk/Lib/test/regrtest.py
Modified: python/trunk/Lib/test/regrtest.py
==============================================================================
--- python/trunk/Lib/test/regrtest.py (original)
+++ python/trunk/Lib/test/regrtest.py Sat Mar 6 10:11:55 2010
@@ -160,6 +160,7 @@
import unittest
import tempfile
import imp
+import platform
import sysconfig
@@ -362,6 +363,9 @@
usage(2, "-T and -j don't go together!")
if use_mp and findleaks:
usage(2, "-l and -j don't go together!")
+ if use_mp and max(sys.flags):
+ # TODO: inherit the environment and the flags
+ print "Warning: flags and environment variables are ignored with -j option"
good = []
bad = []
@@ -369,8 +373,14 @@
resource_denieds = []
environment_changed = []
- if verbose:
- print 'The CWD is now', os.getcwd()
+ if not quiet:
+ # Print basic platform information
+ print "== {} {}".format(
+ platform.python_implementation(),
+ " ".join(sys.version.split())
+ )
+ print "== {}".format(platform.platform(aliased=True))
+ print "== {}".format(os.getcwd())
if findleaks:
try:
More information about the Python-checkins
mailing list