Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
db02844c
Commit
db02844c
authored
Feb 05, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Respect EOL 80.
parent
0e3b0ec2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
Lib/test/test_support.py
Lib/test/test_support.py
+9
-6
No files found.
Lib/test/test_support.py
View file @
db02844c
...
...
@@ -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
#=======================================================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment