Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Test the urllib.request.thishost utility function returns a tuple ... ERROR
- test_quoted_open (test.test_urllib.URLopener_Tests) ... /home/aquiles/Downloads/Python-3.3.0/Lib/unittest/case.py:385: DeprecationWarning: DummyURLopener style of invoking requests is deprecated. Use newer urlopen functions/methods
- function()
- ok
- test_default_values (test.test_urllib.RequestTests) ... ok
- test_with_method_arg (test.test_urllib.RequestTests) ... ok
- ======================================================================
- ERROR: test_thishost (test.test_urllib.Utility_Tests)
- Test the urllib.request.thishost utility function returns a tuple
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/aquiles/Downloads/Python-3.3.0/Lib/test/test_urllib.py", line 1155, in test_thishost
- self.assertIsInstance(urllib.request.thishost(), tuple)
- File "/home/aquiles/Downloads/Python-3.3.0/Lib/urllib/request.py", line 2236, in thishost
- _thishost = tuple(socket.gethostbyname_ex(socket.gethostname())[2])
- socket.gaierror: [Errno -2] Name or service not known
- ----------------------------------------------------------------------
- Ran 66 tests in 0.100s
- FAILED (errors=1, skipped=1)
- test test_urllib failed
- make: *** [test] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement