diff options
-rwxr-xr-x | Lib/test/regrtest.py | 3 | ||||
-rw-r--r-- | 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) |