Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
36732be0
Commit
36732be0
authored
Jun 10, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo in test_ssl.py - replace 'support' with 'test_support'
parent
d683904f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
greentest/test_ssl.py
greentest/test_ssl.py
+8
-8
No files found.
greentest/test_ssl.py
View file @
36732be0
...
...
@@ -1081,9 +1081,9 @@ else:
ssl_version
=
ssl
.
PROTOCOL_TLSv1
)
s
.
connect
((
HOST
,
server
.
port
))
except
ssl
.
SSLError
,
x
:
raise
support
.
TestFailed
(
"Unexpected SSL error: "
+
str
(
x
))
raise
test_
support
.
TestFailed
(
"Unexpected SSL error: "
+
str
(
x
))
except
Exception
,
x
:
raise
support
.
TestFailed
(
"Unexpected exception: "
+
str
(
x
))
raise
test_
support
.
TestFailed
(
"Unexpected exception: "
+
str
(
x
))
else
:
try
:
bytearray
...
...
@@ -1123,7 +1123,7 @@ else:
outdata
=
s
.
read
()
outdata
=
outdata
.
decode
(
'ASCII'
,
'strict'
)
if
outdata
!=
indata
.
lower
():
raise
support
.
TestFailed
(
raise
test_
support
.
TestFailed
(
"While sending with <<%s>> bad data "
"<<%r>> (%d) received; "
"expected <<%r>> (%d)
\
n
"
%
(
...
...
@@ -1133,12 +1133,12 @@ else:
)
except
ValueError
,
e
:
if
expect_success
:
raise
support
.
TestFailed
(
raise
test_
support
.
TestFailed
(
"Failed to send with method <<%s>>; "
"expected to succeed.
\
n
"
%
(
meth_name
,)
)
if
not
str
(
e
).
startswith
(
meth_name
):
raise
support
.
TestFailed
(
raise
test_
support
.
TestFailed
(
"Method <<%s>> failed with unexpected "
"exception message: %s
\
n
"
%
(
meth_name
,
e
...
...
@@ -1152,7 +1152,7 @@ else:
outdata
=
recv_meth
(
*
args
)
outdata
=
outdata
.
decode
(
'ASCII'
,
'strict'
)
if
outdata
!=
indata
.
lower
():
raise
support
.
TestFailed
(
raise
test_
support
.
TestFailed
(
"While receiving with <<%s>> bad data "
"<<%r>> (%d) received; "
"expected <<%r>> (%d)
\
n
"
%
(
...
...
@@ -1162,12 +1162,12 @@ else:
)
except
ValueError
,
e
:
if
expect_success
:
raise
support
.
TestFailed
(
raise
test_
support
.
TestFailed
(
"Failed to receive with method <<%s>>; "
"expected to succeed.
\
n
"
%
(
meth_name
,)
)
if
not
str
(
e
).
startswith
(
meth_name
):
raise
support
.
TestFailed
(
raise
test_
support
.
TestFailed
(
"Method <<%s>> failed with unexpected "
"exception message: %s
\
n
"
%
(
meth_name
,
e
...
...
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