diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-11 16:25:27 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-11 16:29:55 +0200 |
commit | 1873db442dc7511fc2c92fbaeb8d998d3e62723d (patch) | |
tree | 75da67c3d50cef457808c3b8ba9bdbb2b088c1fa /test/git/async/test_pool.py | |
parent | f606937a7a21237c866efafcad33675e6539c103 (diff) | |
download | gitpython-1873db442dc7511fc2c92fbaeb8d998d3e62723d.tar.gz |
Improved shutdown handling - although its impossible to prevent some stderr printing thanks to the underlying threading implementation, we can at least make sure that the interpreter doesn't block during shutdown. Now it appears to be running smoothly
Diffstat (limited to 'test/git/async/test_pool.py')
-rw-r--r-- | test/git/async/test_pool.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/git/async/test_pool.py b/test/git/async/test_pool.py index 40c6d66e..c786770a 100644 --- a/test/git/async/test_pool.py +++ b/test/git/async/test_pool.py @@ -373,10 +373,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 +460,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 |