From: Antoine Pitrou Date: Fri, 15 Oct 2010 13:47:00 +0000 (+0000) Subject: Enable debug output at the start of the regression suite instead. X-Git-Tag: v3.2a4~567 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe9791365dbc9d1c875ae109eb9c40a14dc80cef;p=thirdparty%2FPython%2Fcpython.git Enable debug output at the start of the regression suite instead. Sorry for the ephemeral inconvenience. --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 9f18ea4bd50e..a3df394eaef9 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -450,6 +450,9 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, print("== ", platform.platform(aliased=True), "%s-endian" % sys.byteorder) print("== ", os.getcwd()) + import pprint, errno + print("== Errno map:") + pprint.pprint(errno.errorcode) alltests = findtests(testdir, stdtests, nottests) selected = tests or args or alltests diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 1d7a97c94d9b..aadfdfaf206a 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -1905,11 +1905,6 @@ def test_main(): tests.append(TIPCTest) tests.append(TIPCThreadableTest) - if support.verbose: - import pprint - print("== Errno map:") - pprint.pprint(errno.errorcode) - thread_info = support.threading_setup() support.run_unittest(*tests) support.threading_cleanup(*thread_info)