mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
test_asyncore: wait explicitly for a thread termination (this dangling thread
could be the cause of a random failure).
This commit is contained in:
commit
adbfcb83a2
1 changed files with 1 additions and 1 deletions
|
@ -789,7 +789,7 @@ class BaseTestAPI:
|
||||||
t = threading.Thread(target=lambda: asyncore.loop(timeout=0.1,
|
t = threading.Thread(target=lambda: asyncore.loop(timeout=0.1,
|
||||||
count=500))
|
count=500))
|
||||||
t.start()
|
t.start()
|
||||||
|
self.addCleanup(t.join)
|
||||||
|
|
||||||
s = socket.socket(self.family, socket.SOCK_STREAM)
|
s = socket.socket(self.family, socket.SOCK_STREAM)
|
||||||
s.settimeout(.2)
|
s.settimeout(.2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue