diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-09 14:47:41 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-09 14:50:39 +0200 |
commit | 0974f8737a3c56a7c076f9d0b757c6cb106324fb (patch) | |
tree | d05394903b8dfc63e34806bac7bccb700628a531 /test/git/async/test_channel.py | |
parent | 4e6bece08aea01859a232e99a1e1ad8cc1eb7d36 (diff) | |
download | gitpython-0974f8737a3c56a7c076f9d0b757c6cb106324fb.tar.gz |
Channel: Read method revised - now it really really doesn't block anymore, and it runs faster as well, about 2/3 of the performance we have when being in serial mode
Diffstat (limited to 'test/git/async/test_channel.py')
-rw-r--r-- | test/git/async/test_channel.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/git/async/test_channel.py b/test/git/async/test_channel.py index ab4ae015..32458f31 100644 --- a/test/git/async/test_channel.py +++ b/test/git/async/test_channel.py @@ -33,18 +33,16 @@ class TestChannels(TestBase): assert time.time() - st >= to # writing to a closed channel raises - assert not wc.closed + assert not wc.closed() wc.close() - assert wc.closed + assert wc.closed() wc.close() # fine - assert wc.closed + assert wc.closed() - self.failUnlessRaises(IOError, wc.write, 1) + self.failUnlessRaises(ReadOnly, wc.write, 1) # reading from a closed channel never blocks - print "preblock" assert len(rc.read()) == 0 - print "got read(0)" assert len(rc.read(5)) == 0 assert len(rc.read(1)) == 0 |