Print platform information to stdout, to help troubleshooting platform-specific failures.
This commit is contained in:
parent
0932dc5671
commit
b7c20028fe
|
@ -160,6 +160,7 @@ import warnings
|
||||||
import unittest
|
import unittest
|
||||||
import tempfile
|
import tempfile
|
||||||
import imp
|
import imp
|
||||||
|
import platform
|
||||||
import sysconfig
|
import sysconfig
|
||||||
|
|
||||||
|
|
||||||
|
@ -362,6 +363,9 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
|
||||||
usage(2, "-T and -j don't go together!")
|
usage(2, "-T and -j don't go together!")
|
||||||
if use_mp and findleaks:
|
if use_mp and findleaks:
|
||||||
usage(2, "-l and -j don't go together!")
|
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 = []
|
good = []
|
||||||
bad = []
|
bad = []
|
||||||
|
@ -369,8 +373,14 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
|
||||||
resource_denieds = []
|
resource_denieds = []
|
||||||
environment_changed = []
|
environment_changed = []
|
||||||
|
|
||||||
if verbose:
|
if not quiet:
|
||||||
print 'The CWD is now', os.getcwd()
|
# 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:
|
if findleaks:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue