[issue10116] Sporadic failures in test_urllibnet
Stephen Hansen
report at bugs.python.org
Thu Oct 28 03:52:51 CEST 2010
Stephen Hansen <me+python at ixokai.io> added the comment:
The attached patch wraps all the calls to the internet in support.transient_internet; I ran it against 3.x and it passed, and then I ran it for quite awhile with the -F option, and encountered one event that I believe would previously had resulted in one of these sporadic failures, and it resulted in a skipped 'resource not available' message.
I left in the previous 'retry' code, just by virtue of changing as little as possible. I can adjust if its desired.
I believe that transient_internet won't capture EBADF: so if that particular sporadic failure happens again, I'll post up a new issue about it.
----------
keywords: +patch
Added file: http://bugs.python.org/file19390/issue10116.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10116>
_______________________________________
More information about the Python-bugs-list
mailing list