diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-11 16:47:40 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-11 16:47:40 +0200 |
commit | 29eb123beb1c55e5db4aa652d843adccbd09ae18 (patch) | |
tree | fc85ccf6a7eaf87b35058915b534ccf634f2ff94 /test/git/async/test_pool.py | |
parent | f606937a7a21237c866efafcad33675e6539c103 (diff) | |
parent | e14e3f143e7260de9581aee27e5a9b2645db72de (diff) | |
download | gitpython-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.py | 9 |
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 |