This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients barry, doko
Date 2013-04-16.13:59:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366120788.32.0.41011359208.issue17759@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2013-04-16 13:59:48barrysetrecipients: + barry, doko
2013-04-16 13:59:48barrysetmessageid: <1366120788.32.0.41011359208.issue17759@psf.upfronthosting.co.za>
2013-04-16 13:59:48barrylinkissue17759 messages
2013-04-16 13:59:47barrycreate