summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-10-15 13:47:00 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-10-15 13:47:00 (GMT)
commitfe9791365dbc9d1c875ae109eb9c40a14dc80cef (patch)
tree900005be96feafdeb130af6929bed2d1e270eeb5 /Lib/test
parentf64317e05ff08f8358ada96a62400c5c1e3dd80c (diff)
downloadcpython-fe9791365dbc9d1c875ae109eb9c40a14dc80cef.zip
cpython-fe9791365dbc9d1c875ae109eb9c40a14dc80cef.tar.gz
cpython-fe9791365dbc9d1c875ae109eb9c40a14dc80cef.tar.bz2
Enable debug output at the start of the regression suite instead.
Sorry for the ephemeral inconvenience.
Diffstat (limited to 'Lib/test')
-rwxr-xr-xLib/test/regrtest.py3
-rw-r--r--Lib/test/test_socket.py5
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)