Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe97913

Browse files
committed
Enable debug output at the start of the regression suite instead.
Sorry for the ephemeral inconvenience.
1 parent f64317e commit fe97913

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

Lib/test/regrtest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,9 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
450450
print("== ", platform.platform(aliased=True),
451451
"%s-endian" % sys.byteorder)
452452
print("== ", os.getcwd())
453+
import pprint, errno
454+
print("== Errno map:")
455+
pprint.pprint(errno.errorcode)
453456

454457
alltests = findtests(testdir, stdtests, nottests)
455458
selected = tests or args or alltests

Lib/test/test_socket.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,11 +1905,6 @@ def test_main():
19051905
tests.append(TIPCTest)
19061906
tests.append(TIPCThreadableTest)
19071907

1908-
if support.verbose:
1909-
import pprint
1910-
print("== Errno map:")
1911-
pprint.pprint(errno.errorcode)
1912-
19131908
thread_info = support.threading_setup()
19141909
support.run_unittest(*tests)
19151910
support.threading_cleanup(*thread_info)

0 commit comments

Comments
 (0)