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
9a28f5e3
Commit
9a28f5e3
authored
Aug 31, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'update-34-appveyor'
Travis and Appveyor are both green.
parents
cd77375f
24fc481b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
315 additions
and
38 deletions
+315
-38
src/greentest/3.4/test_httplib.py
src/greentest/3.4/test_httplib.py
+312
-34
src/greentest/3.4/test_ssl.py
src/greentest/3.4/test_ssl.py
+3
-4
No files found.
src/greentest/3.4/test_httplib.py
View file @
9a28f5e3
This diff is collapsed.
Click to expand it.
src/greentest/3.4/test_ssl.py
View file @
9a28f5e3
...
@@ -686,7 +686,8 @@ class ContextTests(unittest.TestCase):
...
@@ -686,7 +686,8 @@ class ContextTests(unittest.TestCase):
self
.
assertEqual
(
ssl
.
OP_ALL
|
ssl
.
OP_NO_TLSv1
|
ssl
.
OP_NO_SSLv3
,
self
.
assertEqual
(
ssl
.
OP_ALL
|
ssl
.
OP_NO_TLSv1
|
ssl
.
OP_NO_SSLv3
,
ctx
.
options
)
ctx
.
options
)
ctx
.
options
=
0
ctx
.
options
=
0
self
.
assertEqual
(
0
,
ctx
.
options
)
# Ubuntu has OP_NO_SSLv3 forced on by default
self
.
assertEqual
(
0
,
ctx
.
options
&
~
ssl
.
OP_NO_SSLv3
)
else
:
else
:
with
self
.
assertRaises
(
ValueError
):
with
self
.
assertRaises
(
ValueError
):
ctx
.
options
=
0
ctx
.
options
=
0
...
@@ -1267,7 +1268,7 @@ class NetworkedTests(unittest.TestCase):
...
@@ -1267,7 +1268,7 @@ class NetworkedTests(unittest.TestCase):
# Issue #19919: Windows machines or VMs hosted on Windows
# Issue #19919: Windows machines or VMs hosted on Windows
# machines sometimes return EWOULDBLOCK.
# machines sometimes return EWOULDBLOCK.
errors
=
(
errors
=
(
errno
.
ECONNREFUSED
,
errno
.
EHOSTUNREACH
,
errno
.
ECONNREFUSED
,
errno
.
EHOSTUNREACH
,
errno
.
ETIMEDOUT
,
errno
.
EWOULDBLOCK
,
errno
.
EWOULDBLOCK
,
)
)
self
.
assertIn
(
rc
,
errors
)
self
.
assertIn
(
rc
,
errors
)
...
@@ -2292,7 +2293,6 @@ else:
...
@@ -2292,7 +2293,6 @@ else:
chatty
=
True
,
chatty
=
True
,
connectionchatty
=
True
)
connectionchatty
=
True
)
wrapped
=
False
wrapped
=
False
with
server
:
with
server
:
s
=
socket
.
socket
()
s
=
socket
.
socket
()
s
.
setblocking
(
1
)
s
.
setblocking
(
1
)
...
@@ -2309,7 +2309,6 @@ else:
...
@@ -2309,7 +2309,6 @@ else:
else
:
else
:
s
.
send
(
indata
)
s
.
send
(
indata
)
outdata
=
s
.
recv
(
1024
)
outdata
=
s
.
recv
(
1024
)
msg
=
outdata
.
strip
().
lower
()
msg
=
outdata
.
strip
().
lower
()
if
indata
==
b"STARTTLS"
and
msg
.
startswith
(
b"ok"
):
if
indata
==
b"STARTTLS"
and
msg
.
startswith
(
b"ok"
):
# STARTTLS ok, switch to secure mode
# STARTTLS ok, switch to secure mode
...
...
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