[issue7547] test_timeout should skip, not fail, when the remote host is not available

Sandro Tosi report at bugs.python.org
Fri Oct 29 19:57:42 CEST 2010


Sandro Tosi <sandro.tosi at gmail.com> added the comment:

Hello,
as discussed on irc, I'm proposing a patch that:

- wraps the test with support.transient_internet
- limits the assert to only socket.timeout (what we want to test)

test_smptnet.py is already fixed, since it already uses support.transient_internet

Regards,
Sandro

----------
keywords: +patch
nosy: +sandro.tosi
stage: needs patch -> patch review
Added file: http://bugs.python.org/file19416/issue7547-py3k.patch

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


More information about the Python-bugs-list mailing list