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
6b3c1bea
Commit
6b3c1bea
authored
Jun 09, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
for the known failures in test__wsgi.py, print a warning instead of raising an exception
parent
260af574
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
greentest/test__pywsgi.py
greentest/test__pywsgi.py
+18
-2
greentest/test__wsgi.py
greentest/test__wsgi.py
+1
-0
No files found.
greentest/test__pywsgi.py
View file @
6b3c1bea
...
...
@@ -40,6 +40,7 @@ CONTENT_LENGTH = 'Content-Length'
CONN_ABORTED_ERRORS
=
[]
server_implements_chunked
=
True
server_supports_pipeline
=
True
server_implements_100continue
=
True
DEBUG
=
'-v'
in
sys
.
argv
try
:
...
...
@@ -759,7 +760,14 @@ class ChunkedInputTests(TestCase):
fd
=
self
.
connect
().
makefile
(
bufsize
=
1
)
fd
.
write
(
req
)
read_http
(
fd
,
body
=
"pong"
)
try
:
read_http
(
fd
,
body
=
"pong"
)
except
AssertionError
,
ex
:
if
str
(
ex
).
startswith
(
'Unexpected code: 400'
):
if
not
server_implements_chunked
:
print
'ChunkedNotImplementedWarning'
return
raise
self
.
ping
(
fd
)
...
...
@@ -812,7 +820,15 @@ class Expect100ContinueTests(TestCase):
fd
=
self
.
connect
().
makefile
(
bufsize
=
1
)
fd
.
write
(
'PUT / HTTP/1.1
\
r
\
n
Host: localhost
\
r
\
n
Content-length: 1025
\
r
\
n
Expect: 100-continue
\
r
\
n
\
r
\
n
'
)
read_http
(
fd
,
code
=
417
,
body
=
"failure"
)
try
:
read_http
(
fd
,
code
=
417
,
body
=
"failure"
)
except
AssertionError
,
ex
:
if
str
(
ex
).
startswith
(
'Unexpected code: 400'
):
if
not
server_implements_100continue
:
print
'100ContinueNotImplementedWarning'
return
raise
fd
.
write
(
'PUT / HTTP/1.1
\
r
\
n
Host: localhost
\
r
\
n
Content-length: 7
\
r
\
n
Expect: 100-continue
\
r
\
n
\
r
\
n
testing'
)
read_http
(
fd
,
code
=
100
)
...
...
greentest/test__wsgi.py
View file @
6b3c1bea
...
...
@@ -6,6 +6,7 @@ from test__pywsgi import *
del
TestHttps
test__pywsgi
.
server_implements_chunked
=
False
test__pywsgi
.
server_supports_pipeline
=
gevent
.
core
.
get_version
()[
1
]
==
'2'
test__pywsgi
.
server_implements_100continue
=
False
TestCase
.
get_wsgi_module
=
lambda
*
args
:
wsgi
...
...
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