summaryrefslogtreecommitdiff
path: root/test/git/async/test_pool.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-11 16:47:40 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-11 16:47:40 +0200
commit29eb123beb1c55e5db4aa652d843adccbd09ae18 (patch)
treefc85ccf6a7eaf87b35058915b534ccf634f2ff94 /test/git/async/test_pool.py
parentf606937a7a21237c866efafcad33675e6539c103 (diff)
parente14e3f143e7260de9581aee27e5a9b2645db72de (diff)
downloadgitpython-29eb123beb1c55e5db4aa652d843adccbd09ae18.tar.gz
Merge branch 'cleanup' into async
Diffstat (limited to 'test/git/async/test_pool.py')
-rw-r--r--test/git/async/test_pool.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/git/async/test_pool.py b/test/git/async/test_pool.py
index 40c6d66e..0042c4a8 100644
--- a/test/git/async/test_pool.py
+++ b/test/git/async/test_pool.py
@@ -19,7 +19,6 @@ class TestThreadPool(TestBase):
def _assert_single_task(self, p, async=False):
"""Performs testing in a synchronized environment"""
- # return # DEBUG TODO: Fixme deactivated it
print >> sys.stderr, "Threadpool: Starting single task (async = %i) with %i threads" % (async, p.size())
null_tasks = p.num_tasks() # in case we had some before
@@ -373,10 +372,7 @@ class TestThreadPool(TestBase):
-
- # for some reason, sometimes it has multiple workerthreads already when he
- # enters the method ... dunno yet, pools should clean up themselvess
- #@terminate_threads
+ @terminate_threads
def test_base(self):
assert len(threading.enumerate()) == 1
@@ -463,10 +459,11 @@ class TestThreadPool(TestBase):
# threads per core
p.set_size(4)
self._assert_single_task(p, True)
+
+
# DEPENDENT TASK ASYNC MODE
###########################
self._assert_async_dependent_tasks(p)
print >> sys.stderr, "Done with everything"
- # TODO: test multi-pool connections