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
d49be309
Commit
d49be309
authored
Mar 31, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable test_socket_ssl timeout test on Windows.
parent
ccadf84a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
Lib/test/test_socket_ssl.py
Lib/test/test_socket_ssl.py
+13
-11
No files found.
Lib/test/test_socket_ssl.py
View file @
d49be309
# Test just the SSL support in the socket module, in a moderately bogus way.
import
sys
from
test
import
test_support
import
socket
...
...
@@ -26,18 +27,19 @@ def test_basic():
buf
=
f
.
read
()
f
.
close
()
def
test_timeout
():
test_support
.
requires
(
'network'
)
if
not
sys
.
platform
.
startswith
(
'win'
):
def
test_timeout
():
test_support
.
requires
(
'network'
)
s
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
s
.
settimeout
(
30.0
)
# connect to service which issues an welcome banner (without need to write anything)
s
.
connect
((
"gmail.org"
,
995
))
ss
=
socket
.
ssl
(
s
)
# read part of return welcome banner twice,# read part of return welcome banner twice
ss
.
read
(
1
)
ss
.
read
(
1
)
s
.
close
()
s
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
s
.
settimeout
(
30.0
)
# connect to service which issues an welcome banner (without need to write anything)
s
.
connect
((
"gmail.org"
,
995
))
ss
=
socket
.
ssl
(
s
)
# read part of return welcome banner twice,# read part of return welcome banner twice
ss
.
read
(
1
)
ss
.
read
(
1
)
s
.
close
()
def
test_rude_shutdown
():
try
:
...
...
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