diff options
author | Georg Brandl <georg@python.org> | 2008-02-05 20:48:58 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-02-05 20:48:58 (GMT) |
commit | db02844c3862ae37456d89bc9bd0e7008da7c6dd (patch) | |
tree | 3652cdd453e3a1f92b268174e8035f65bf97cab9 | |
parent | 0e3b0ec29c4a5f14c8872ff93e2476ca99567da9 (diff) | |
download | cpython-db02844c3862ae37456d89bc9bd0e7008da7c6dd.zip cpython-db02844c3862ae37456d89bc9bd0e7008da7c6dd.tar.gz cpython-db02844c3862ae37456d89bc9bd0e7008da7c6dd.tar.bz2 |
Respect EOL 80.
-rw-r--r-- | Lib/test/test_support.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 84f6a51..17307c8 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -118,7 +118,8 @@ def bind_port(sock, host='', preferred_port=54321): (err, msg) = e.args if err != errno.EADDRINUSE: raise - print(' WARNING: failed to listen on port %d, trying another' % port, file=sys.__stderr__) + print(' WARNING: failed to listen on port %d, trying another' % + (port, file=sys.__stderr__)) raise TestFailed('unable to find port to listen on') FUZZ = 1e-6 @@ -179,9 +180,9 @@ else: except UnicodeEncodeError: pass else: - print('WARNING: The filename %r CAN be encoded by the filesystem. ' \ - 'Unicode filename tests may not be effective' \ - % TESTFN_UNICODE_UNENCODEABLE) + print('WARNING: The filename %r CAN be encoded by the filesystem. ' + 'Unicode filename tests may not be effective' + % TESTFN_UNICODE_UNENCODEABLE) # Make sure we can write to TESTFN, try in /tmp if we can't fp = None @@ -424,7 +425,8 @@ def run_with_locale(catstr, *locales): return decorator #======================================================================= -# Big-memory-test support. Separate from 'resources' because memory use should be configurable. +# Big-memory-test support. Separate from 'resources' because memory use +# should be configurable. # Some handy shorthands. Note that these are used for byte-limits as well # as size-limits, in the various bigmem tests @@ -578,7 +580,8 @@ def run_doctest(module, verbosity=None): finally: sys.stdout = save_stdout if verbose: - print('doctest (%s) ... %d tests with zero failures' % (module.__name__, t)) + print('doctest (%s) ... %d tests with zero failures' % + (module.__name__, t)) return f, t #======================================================================= |