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
1d5ede8f
Commit
1d5ede8f
authored
Jun 21, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test__pywsgi.py: do not use SIGALRM as it's not available on windows
parent
4d5e8021
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
23 deletions
+8
-23
greentest/test__pywsgi.py
greentest/test__pywsgi.py
+8
-23
No files found.
greentest/test__pywsgi.py
View file @
1d5ede8f
...
...
@@ -780,29 +780,14 @@ class ChunkedInputTests(TestCase):
read_http
(
fd
,
body
=
'this is chunked
\
n
line 2
\
n
line3'
)
def
test_close_before_finished
(
self
):
import
signal
got_signal
=
[]
def
handler
(
*
args
):
got_signal
.
append
(
1
)
raise
KeyboardInterrupt
()
signal
.
signal
(
signal
.
SIGALRM
,
handler
)
signal
.
alarm
(
1
)
try
:
body
=
'4
\
r
\
n
thi'
req
=
"POST /short-read HTTP/1.1
\
r
\
n
transfer-encoding: Chunked
\
r
\
n
\
r
\
n
"
+
body
fd
=
self
.
connect
().
makefile
(
bufsize
=
1
)
fd
.
write
(
req
)
fd
.
close
()
gevent
.
sleep
(
0.0
)
finally
:
signal
.
alarm
(
0
)
signal
.
signal
(
signal
.
SIGALRM
,
signal
.
SIG_DFL
)
assert
not
got_signal
,
"caught alarm signal. infinite loop detected."
self
.
hook_stderr
()
body
=
'4
\
r
\
n
thi'
req
=
"POST /short-read HTTP/1.1
\
r
\
n
transfer-encoding: Chunked
\
r
\
n
\
r
\
n
"
+
body
fd
=
self
.
connect
().
makefile
(
bufsize
=
1
)
fd
.
write
(
req
)
fd
.
close
()
gevent
.
sleep
(
0.01
)
self
.
assert_stderr_traceback
(
IOError
,
'unexpected end of file while parsing chunked data'
)
class
Expect100ContinueTests
(
TestCase
):
...
...
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