Message149152
The test_poplib failures are likely due to this obvious race:
"""
def setUp(self):
[...]
threading.Thread(target=self.server, args=(self.evt,self.sock)).start()
time.sleep(.1)
[...]
def server(self, evt, serv):
serv.listen(5)
"""
If the server thread doesn't call listen() before sleep(.1) returns,
the client will receive ECONNREFUSED (the test fail consistently
without the sleep).
The patch attached fixes this, and also does the same type of cleanup
as for test_telnetlib in #11812. |
|
Date |
User |
Action |
Args |
2011-12-10 13:33:45 | neologix | set | recipients:
+ neologix, pitrou, vstinner, nadeem.vawda, python-dev |
2011-12-10 13:33:19 | neologix | link | issue13453 messages |
2011-12-10 13:33:18 | neologix | create | |
|