Message205131
| Author |
neologix |
| Recipients |
koobs, neologix, pitrou |
| Date |
2013年12月03日.18:09:55 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CAH_1eM1g-faD4DqKi23F61M5PqFg7EdN+Bx3AcfuKM_onxvuHA@mail.gmail.com> |
| In-reply-to |
<1386065859.81.0.4295023541.issue19875@psf.upfronthosting.co.za> |
| Content |
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. |
|