[issue12133] ResourceWarning in urllib.request

Ezio Melotti report at bugs.python.org
Sat May 21 15:16:33 CEST 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

The packaging test (test_pypi_simple.py:test_uses_mirrors) creates a server and a mirror, starts the mirror only, tries to connect to the server, and then falls back on the mirror when the server raises a timeout error.
The code in the first message does more or less the same, causing a timeout error and the resource warning.

I haven't checked in detail the urllib tests, but the fact that there are no ResourceWarnings while running test_urllib might mean that this case isn't currently tested.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12133>
_______________________________________


More information about the Python-bugs-list mailing list