diff options
author | Charles-François Natali <cf.natali@gmail.com> | 2013-01-13 13:08:01 (GMT) |
---|---|---|
committer | Charles-François Natali <cf.natali@gmail.com> | 2013-01-13 13:08:01 (GMT) |
commit | 1ea12ff04dad589807257f258aa5c3758c924a0d (patch) | |
tree | 5df6436b0b82e73cf95fc30814cbbea53f17e5e3 /Lib | |
parent | 0e5c48a9171fd0182f67929b82c4b539c5356736 (diff) | |
parent | ce1519d250ca457e60a91943d7686e2b85764170 (diff) | |
download | cpython-1ea12ff04dad589807257f258aa5c3758c924a0d.zip cpython-1ea12ff04dad589807257f258aa5c3758c924a0d.tar.gz cpython-1ea12ff04dad589807257f258aa5c3758c924a0d.tar.bz2 |
test_asyncore: wait explicitly for a thread termination (this dangling thread
could be the cause of a random failure).
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_asyncore.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ class BaseTestAPI: 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) |