diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-06 23:08:06 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-06 23:08:06 +0200 |
commit | 867129e2950458ab75523b920a5e227e3efa8bbc (patch) | |
tree | 714a0ec16d915d04c69e91a3e222a79cdc9532be /test/git/async/test_channel.py | |
parent | 1b27292936c81637f6b9a7141dafaad1126f268e (diff) | |
download | gitpython-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.py | 2 |
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 |