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
1ec46d17
Commit
1ec46d17
authored
May 22, 2015
by
adieu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for #512.
parent
a755c446
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
greentest/test__greenlet.py
greentest/test__greenlet.py
+20
-0
No files found.
greentest/test__greenlet.py
View file @
1ec46d17
...
...
@@ -288,6 +288,26 @@ class TestStuff(greentest.TestCase):
assert
'second'
in
str
(
ex
),
repr
(
str
(
ex
))
gevent
.
joinall
([
a
,
b
])
def
test_joinall_count_raise_error
(
self
):
# When joinall is asked not to raise an error, the 'count' param still
# works.
def
raises_but_ignored
():
raise
ExpectedError
(
"count"
)
def
sleep_forever
():
while
True
:
sleep
(
0.1
)
sleeper
=
gevent
.
spawn
(
sleep_forever
)
raiser
=
gevent
.
spawn
(
raises_but_ignored
)
gevent
.
joinall
([
sleeper
,
raiser
],
raise_error
=
False
,
count
=
1
)
assert_ready
(
raiser
)
assert_not_ready
(
sleeper
)
# Clean up our mess
sleeper
.
kill
()
assert_ready
(
sleeper
)
def
test_multiple_listeners_error
(
self
):
# if there was an error while calling a callback
# it should not prevent the other listeners from being called
...
...
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