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
f83b3e84
Commit
f83b3e84
authored
Sep 09, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test__pool.py: add test for join()
parent
5fd7fdcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
greentest/test__pool.py
greentest/test__pool.py
+14
-5
No files found.
greentest/test__pool.py
View file @
f83b3e84
...
...
@@ -2,10 +2,10 @@ from time import time
import
gevent
from
gevent
import
pool
from
gevent.event
import
Event
from
greentest
import
TestCase
,
main
import
greentest
class
TestCoroutinePool
(
TestCase
):
class
TestCoroutinePool
(
greentest
.
TestCase
):
klass
=
pool
.
Pool
def
test_apply_async
(
self
):
...
...
@@ -106,7 +106,7 @@ class TestCoroutinePool(TestCase):
pool
.
join
()
class
PoolBasicTests
(
TestCase
):
class
PoolBasicTests
(
greentest
.
TestCase
):
klass
=
pool
.
Pool
def
test_execute_async
(
self
):
...
...
@@ -165,7 +165,7 @@ def sqr(x, wait=0.0):
TIMEOUT1
,
TIMEOUT2
,
TIMEOUT3
=
0.082
,
0.035
,
0.14
class
TestPool
(
TestCase
):
class
TestPool
(
greentest
.
TestCase
):
size
=
1
def
setUp
(
self
):
...
...
@@ -246,6 +246,15 @@ class TestPool10(TestPool):
class
TestPoolUnlimit
(
TestPool
):
size
=
None
class
TestJoin
(
greentest
.
GenericWaitTestCase
):
def
wait
(
self
,
timeout
):
p
=
pool
.
Pool
()
p
.
spawn
(
gevent
.
sleep
,
10
)
p
.
join
(
timeout
=
timeout
)
if
__name__
==
'__main__'
:
main
()
greentest
.
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