From 57a4e09294230a36cc874a6272c71757c48139f2 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 9 Jun 2010 15:29:47 +0200 Subject: 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 --- test/git/async/test_channel.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/git') 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 -- cgit v1.2.3