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
91b35dad
Commit
91b35dad
authored
Jul 31, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test__hub.py: remove test_negative
parent
5861b021
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
greentest/test__hub.py
greentest/test__hub.py
+0
-18
No files found.
greentest/test__hub.py
View file @
91b35dad
...
...
@@ -80,24 +80,6 @@ class TestSleep(greentest.GenericWaitTestCase):
def
test_simple
(
self
):
gevent
.
sleep
(
0
)
def
test_negative
(
self
):
self
.
switch_expected
=
False
self
.
assertRaises
(
IOError
,
gevent
.
sleep
,
-
1
)
if
sys
.
platform
!=
'win32'
:
from
time
import
sleep
as
real_sleep
try
:
real_sleep
(
-
0.1
)
except
IOError
:
real_ex
=
sys
.
exc_info
()[
1
]
else
:
# XXX real_sleep(-0.1) hangs on win32
real_ex
=
"[Errno 22] Invalid argument"
try
:
gevent
.
sleep
(
-
0.1
)
except
IOError
:
gevent_ex
=
sys
.
exc_info
()[
1
]
self
.
assertEqual
(
str
(
gevent_ex
),
str
(
real_ex
))
class
TestWaiterGet
(
greentest
.
GenericWaitTestCase
):
...
...
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