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
e0ae1fdf
Commit
e0ae1fdf
authored
Jan 28, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test__hub.py: fix test from failing on Python2.4
parent
aadc5b9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
greentest/test__hub.py
greentest/test__hub.py
+3
-2
No files found.
greentest/test__hub.py
View file @
e0ae1fdf
...
...
@@ -22,6 +22,7 @@
import
greentest
import
unittest
import
time
import
re
import
gevent
from
gevent
import
core
from
gevent
import
socket
...
...
@@ -165,13 +166,13 @@ class TestWaiter(greentest.GenericWaitTestCase):
waiter
=
Waiter
()
waiter
.
throw
(
ZeroDivisionError
)
self
.
assertEqual
(
str
(
waiter
),
"<Waiter greenlet=None exc_info=(<type 'exceptions.ZeroDivisionError'>,)>"
)
assert
re
.
match
(
'^<Waiter greenlet=None exc_info=.*ZeroDivisionError.*$'
,
str
(
waiter
)),
str
(
waiter
)
self
.
assertRaises
(
ZeroDivisionError
,
waiter
.
get
)
waiter
=
Waiter
()
gevent
.
spawn
(
waiter
.
get
)
gevent
.
sleep
(
0
)
assert
str
(
waiter
).
startswith
(
'<Waiter greenlet=<Greenlet at
0x
'
),
str
(
waiter
)
assert
str
(
waiter
).
startswith
(
'<Waiter greenlet=<Greenlet at '
),
str
(
waiter
)
if
__name__
==
'__main__'
:
...
...
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