Skip to content

Commit adbfcb8

Browse files
committed
test_asyncore: wait explicitly for a thread termination (this dangling thread
could be the cause of a random failure).
2 parents fa3965a + c78de46 commit adbfcb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_asyncore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ def test_quick_connect(self):
789789
t = threading.Thread(target=lambda: asyncore.loop(timeout=0.1,
790790
count=500))
791791
t.start()
792-
792+
self.addCleanup(t.join)
793793

794794
s = socket.socket(self.family, socket.SOCK_STREAM)
795795
s.settimeout(.2)

0 commit comments

Comments
 (0)