From fe9791365dbc9d1c875ae109eb9c40a14dc80cef Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Fri, 15 Oct 2010 13:47:00 +0000 Subject: Enable debug output at the start of the regression suite instead. Sorry for the ephemeral inconvenience. --- Lib/test/regrtest.py | 3 +++ Lib/test/test_socket.py | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 9f18ea4..a3df394 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 1d7a97c..aadfdfa 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) -- cgit v0.12