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
ce816a51
Commit
ce816a51
authored
Jan 28, 2012
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Issue #13895: fix test_ssl hanging under Ubuntu
parents
d770fe45
eba63c42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
Lib/test/test_ssl.py
Lib/test/test_ssl.py
+25
-25
No files found.
Lib/test/test_ssl.py
View file @
ce816a51
...
...
@@ -1198,33 +1198,33 @@ else:
chatty
=
chatty
,
connectionchatty
=
False
)
with
server
:
s
=
client_context
.
wrap_socket
(
socket
.
socket
())
s
.
connect
((
HOST
,
server
.
port
))
for
arg
in
[
indata
,
bytearray
(
indata
),
memoryview
(
indata
)]:
if
connectionchatty
:
if
support
.
verbose
:
sys
.
stdout
.
write
(
" client: sending %r...
\
n
"
%
indata
)
s
.
write
(
arg
)
outdata
=
s
.
read
()
with
client_context
.
wrap_socket
(
socket
.
socket
())
as
s
:
s
.
connect
((
HOST
,
server
.
port
))
for
arg
in
[
indata
,
bytearray
(
indata
),
memoryview
(
indata
)]:
if
connectionchatty
:
if
support
.
verbose
:
sys
.
stdout
.
write
(
" client: sending %r...
\
n
"
%
indata
)
s
.
write
(
arg
)
outdata
=
s
.
read
()
if
connectionchatty
:
if
support
.
verbose
:
sys
.
stdout
.
write
(
" client: read %r
\
n
"
%
outdata
)
if
outdata
!=
indata
.
lower
():
raise
AssertionError
(
"bad data <<%r>> (%d) received; expected <<%r>> (%d)
\
n
"
%
(
outdata
[:
20
],
len
(
outdata
),
indata
[:
20
].
lower
(),
len
(
indata
)))
s
.
write
(
b"over
\
n
"
)
if
connectionchatty
:
if
support
.
verbose
:
sys
.
stdout
.
write
(
" client: read %r
\
n
"
%
outdata
)
if
outdata
!=
indata
.
lower
():
raise
AssertionError
(
"bad data <<%r>> (%d) received; expected <<%r>> (%d)
\
n
"
%
(
outdata
[:
20
],
len
(
outdata
),
indata
[:
20
].
lower
(),
len
(
indata
)))
s
.
write
(
b"over
\
n
"
)
if
connectionchatty
:
if
support
.
verbose
:
sys
.
stdout
.
write
(
" client: closing connection.
\
n
"
)
stats
=
{
'compression'
:
s
.
compression
(),
'cipher'
:
s
.
cipher
(),
}
s
.
close
()
return
stats
sys
.
stdout
.
write
(
" client: closing connection.
\
n
"
)
stats
=
{
'compression'
:
s
.
compression
(),
'cipher'
:
s
.
cipher
(),
}
s
.
close
()
return
stats
def
try_protocol_combo
(
server_protocol
,
client_protocol
,
expect_success
,
certsreqs
=
None
,
server_options
=
0
,
client_options
=
0
):
...
...
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