summaryrefslogtreecommitdiff
path: root/test/git/async/test_channel.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-06 23:08:06 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-06 23:08:06 +0200
commit867129e2950458ab75523b920a5e227e3efa8bbc (patch)
tree714a0ec16d915d04c69e91a3e222a79cdc9532be /test/git/async/test_channel.py
parent1b27292936c81637f6b9a7141dafaad1126f268e (diff)
downloadgitpython-867129e2950458ab75523b920a5e227e3efa8bbc.tar.gz
channel.read: enhanced to be sure we don't run into non-atomicity issues related to our channel closed flag, which is the only way not to block forever on read(0) channels which were closed by a thread 'in the meanwhile'
Diffstat (limited to 'test/git/async/test_channel.py')
-rw-r--r--test/git/async/test_channel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/git/async/test_channel.py b/test/git/async/test_channel.py
index 2a3c1585..6472b5b5 100644
--- a/test/git/async/test_channel.py
+++ b/test/git/async/test_channel.py
@@ -26,7 +26,7 @@ class TestChannels(TestBase):
assert rc.read(timeout=1) == [item, item2]
assert time.time() - st >= 1.0
- # next read blocks, then raises - it waits a second
+ # next read blocks. it waits a second
st = time.time()
assert len(rc.read(1, True, 1)) == 0
assert time.time() - st >= 1.0