diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-09 15:29:47 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-09 15:29:47 +0200 |
commit | 57a4e09294230a36cc874a6272c71757c48139f2 (patch) | |
tree | e77cc49b66cacae91400ba1eaa7856ce367fc1a6 /test/git/async/test_channel.py | |
parent | 0974f8737a3c56a7c076f9d0b757c6cb106324fb (diff) | |
download | gitpython-57a4e09294230a36cc874a6272c71757c48139f2.tar.gz |
Channel: removed pseudoconstructor, which clearly improves the design and makes it easier to constomize
pool: in serial mode, created channels will be serial-only, which brings 15% of performance
Diffstat (limited to 'test/git/async/test_channel.py')
-rw-r--r-- | test/git/async/test_channel.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/git/async/test_channel.py b/test/git/async/test_channel.py index 32458f31..444a076a 100644 --- a/test/git/async/test_channel.py +++ b/test/git/async/test_channel.py @@ -8,12 +8,10 @@ class TestChannels(TestBase): def test_base(self): # creating channel yields a write and a read channal - wc, rc = Channel() - assert isinstance(wc, WChannel) + wc, rc = mkchannel() + assert isinstance(wc, WChannel) # default args assert isinstance(rc, RChannel) - # everything else fails - self.failUnlessRaises(ValueError, Channel, 1, "too many args") # TEST UNLIMITED SIZE CHANNEL - writing+reading is FIFO item = 1 |