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 <rep...@bugs.python.org> <http://bugs.python.org/issue17759> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com