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
41d64911
Commit
41d64911
authored
Mar 23, 2008
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress failure (to avoid a flaky test) if we cannot connect to svn.python.org
parent
acbd6420
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
Lib/test/test_socket_ssl.py
Lib/test/test_socket_ssl.py
+10
-2
No files found.
Lib/test/test_socket_ssl.py
View file @
41d64911
...
...
@@ -55,7 +55,7 @@ class ConnectedTests(unittest.TestCase):
def
error_msg
(
extra_msg
):
print
>>
sys
.
stderr
,
"""
\
WARNING: an attempt to connect to %r %s, in
test
_t
imeout. That may be legitimate, but is not the outcome we
test
T
imeout. That may be legitimate, but is not the outcome we
hoped for. If this message is seen often, testTimeout should be
changed to use a more reliable address."""
%
(
ADDR
,
extra_msg
)
...
...
@@ -145,7 +145,15 @@ class BasicTests(unittest.TestCase):
import
os
,
httplib
,
ssl
with
test_support
.
transient_internet
():
s
=
socket
.
socket
(
socket
.
AF_INET
)
self
.
connect
(
s
,
(
"svn.python.org"
,
443
))
try
:
self
.
connect
(
s
,
(
"svn.python.org"
,
443
))
except
IOError
:
print
>>
sys
.
stderr
,
"""
\
WARNING: an attempt to connect to svn.python.org:443 failed, in
test_978833. That may be legitimate, but is not the outcome we
hoped for. If this message is seen often, test_978833 should be
changed to use a more reliable address."""
return
fd
=
s
.
_sock
.
fileno
()
sock
=
ssl
.
wrap_socket
(
s
)
s
=
None
...
...
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