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
655d0d27
Commit
655d0d27
authored
Dec 09, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a test case for JoinableQueue(0) bug (fixed in 549:539aefe864c8)
parent
218cb230
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
greentest/test__queue.py
greentest/test__queue.py
+10
-0
No files found.
greentest/test__queue.py
View file @
655d0d27
...
...
@@ -227,6 +227,16 @@ class TestChannel(TestCase):
self
.
assertEqual
([
'waiting'
,
'sending hello'
,
'hello'
,
'sending world'
,
'world'
,
'sent world'
],
events
)
g
.
get
()
def
test_task_done
(
self
):
channel
=
queue
.
JoinableQueue
(
0
)
X
=
object
()
gevent
.
spawn
(
channel
.
put
,
X
)
result
=
channel
.
get
()
assert
result
is
X
,
(
result
,
X
)
assert
channel
.
unfinished_tasks
==
1
,
channel
.
unfinished_tasks
channel
.
task_done
()
assert
channel
.
unfinished_tasks
==
0
,
channel
.
unfinished_tasks
class
TestNoWait
(
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