Message187079
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) |
|
Date |
User |
Action |
Args |
2013-04-16 13:59:48 | barry | set | recipients:
+ barry, doko |
2013-04-16 13:59:48 | barry | set | messageid: <1366120788.32.0.41011359208.issue17759@psf.upfronthosting.co.za> |
2013-04-16 13:59:48 | barry | link | issue17759 messages |
2013-04-16 13:59:47 | barry | create | |
|