[issue17759] test_urllibnet.test_bad_address() fails on Ubuntu 13.04
Barry A. Warsaw
report at bugs.python.org
Tue Apr 16 15:59:48 CEST 2013
New submission from Barry A. Warsaw:
socket.gethostbyname('sadflkjsasf.i.nvali.d') gives a TimeoutError instead of an IOError on Ubuntu 13.04, causing the test to fail.
% ./python -m unittest test.test_urllibnet
.E../home/barry/projects/python/cpython/Lib/test/test_urllibnet.py:94: DeprecationWarning: FancyURLopener style of invoking requests is deprecated. Use newer urlopen functions/methods
open_url = urllib.request.FancyURLopener().open(URL)
.........
======================================================================
ERROR: test_bad_address (test.test_urllibnet.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/barry/projects/python/cpython/Lib/test/test_urllibnet.py", line 118, in test_bad_address
socket.gethostbyname(bogus_domain)
TimeoutError: [Errno 110] Connection timed out
----------------------------------------------------------------------
Ran 13 tests in 6.116s
FAILED (errors=1)
----------
messages: 187079
nosy: barry, doko
priority: normal
severity: normal
status: open
title: test_urllibnet.test_bad_address() fails on Ubuntu 13.04
versions: Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17759>
_______________________________________
More information about the Python-bugs-list
mailing list