[issue19875] test_getsockaddrarg occasional failure
Charles-François Natali
report at bugs.python.org
Tue Dec 3 19:09:55 CET 2013
Charles-François Natali added the comment:
This test is inherently subject to a race condition:
"""
port = support.find_unused_port()
[...]
try:
self.assertRaises(OverflowError, sock.bind, (host, big_port))
self.assertRaises(OverflowError, sock.bind, (host, neg_port))
sock.bind((host, port))
finally:
sock.close()
"""
The buildbot being set up ton run the test suite with "-j4" is
probably the most important factor.
A possibility would be to try the find_unused_port() + bind() in a
loop a couple times.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19875>
_______________________________________
More information about the Python-bugs-list
mailing list