[issue27614] Race in test_docxmlrpc.py

2016-08-05 Thread earl.chew
earl.chew added the comment: In the original code, the key to the failure I observed is: # wait for port to be assigned n = 1000 while n > 0 and PORT is None: time.sleep(0.001) n -= 1 This gives a fixed deadline for the server thread to cre

[issue27614] Race in test_docxmlrpc.py

2016-07-25 Thread earl.chew
New submission from earl.chew: The test test_docxmlrpc.py will sometimes hang because of a timing race. I've verified that this code is the same up to version 3.5 and master at https://github.com/python/cpython/blob/master/Lib/test/test_docxmlrpc.py A proposed patch is attached