From 867129e2950458ab75523b920a5e227e3efa8bbc Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 6 Jun 2010 23:08:06 +0200 Subject: 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' --- test/git/async/test_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/git/async/test_channel.py') 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 -- cgit v1.2.1