commit | 1ea12ff04dad589807257f258aa5c3758c924a0d | [log] [tgz] |
---|---|---|
author | Charles-François Natali <cf.natali@gmail.com> | Sun Jan 13 14:08:01 2013 +0100 |
committer | Charles-François Natali <cf.natali@gmail.com> | Sun Jan 13 14:08:01 2013 +0100 |
tree | 5df6436b0b82e73cf95fc30814cbbea53f17e5e3 | |
parent | 0e5c48a9171fd0182f67929b82c4b539c5356736 [diff] | |
parent | ce1519d250ca457e60a91943d7686e2b85764170 [diff] |
test_asyncore: wait explicitly for a thread termination (this dangling thread could be the cause of a random failure).
diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py index 4ae16eb..878b26c 100644 --- a/Lib/test/test_asyncore.py +++ b/Lib/test/test_asyncore.py
@@ -789,7 +789,7 @@ t = threading.Thread(target=lambda: asyncore.loop(timeout=0.1, count=500)) t.start() - + self.addCleanup(t.join) s = socket.socket(self.family, socket.SOCK_STREAM) s.settimeout(.2)