358 tests OK. 1 test failed: test_urllibnet 2 tests altered the execution environment: test_site test_warnings 14 tests skipped: test_curses test_devpoll test_gdb test_kqueue test_msilib test_ossaudiodev test_pep277 test_startfile test_tk test_ttk_guionly test_unicode_file test_winreg test_winsound test_zipfile64 2 skips unexpected on linux: test_tk test_ttk_guionly Re-running failed tests in verbose mode Re-running test 'test_urllibnet' in verbose mode testURLread (test.test_urllibnet.URLTimeoutTest) ... ok test_bad_address (test.test_urllibnet.urlopenNetworkTests) ... ok test_basic (test.test_urllibnet.urlopenNetworkTests) ... ok test_fileno (test.test_urllibnet.urlopenNetworkTests) ... ERROR test_getcode (test.test_urllibnet.urlopenNetworkTests) ... /home/foo/python3.3.4/Python-3.3.4/Lib/test/test_urllibnet.py:92: DeprecationWarning: FancyURLopener style of invoking requests is deprecated. Use newer urlopen function s/methods open_url = urllib.request.FancyURLopener().open(URL) ok test_geturl (test.test_urllibnet.urlopenNetworkTests) ... ok test_info (test.test_urllibnet.urlopenNetworkTests) ... ok test_readlines (test.test_urllibnet.urlopenNetworkTests) ... ok test_basic (test.test_urllibnet.urlretrieveNetworkTests) ... ERROR test_data_header (test.test_urllibnet.urlretrieveNetworkTests) ... ERROR test_header (test.test_urllibnet.urlretrieveNetworkTests) ... ok test_reporthook (test.test_urllibnet.urlretrieveNetworkTests) ... ERROR test_specified_path (test.test_urllibnet.urlretrieveNetworkTests) ... ERROR ====================================================================== ERROR: test_fileno (test.test_urllibnet.urlopenNetworkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/foo/python3.3.4/Python-3.3.4/Lib/test/test_urllibnet.py", line 107, in test_fileno self.assertTrue(f.read(), "reading from file created using fd " File "/home/foo/python3.3.4/Python-3.3.4/Lib/codecs.py", line 301, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc9 in position 1: invalid continuation byte ====================================================================== ERROR: test_basic (test.test_urllibnet.urlretrieveNetworkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/foo/python3.3.4/Python-3.3.4/Lib/test/test_urllibnet.py", line 155, in test_basic self.assertTrue(f.read(), "reading from the file location returned" File "/home/foo/python3.3.4/Python-3.3.4/Lib/codecs.py", line 301, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte ====================================================================== ERROR: test_data_header (test.test_urllibnet.urlretrieveNetworkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/foo/python3.3.4/Python-3.3.4/Lib/test/test_urllibnet.py", line 176, in test_data_header with self.urlretrieve(self.logo) as (file_location, fileheaders): File "/home/foo/python3.3.4/Python-3.3.4/Lib/contextlib.py", line 48, in __enter__ return next(self.gen) File "/home/foo/python3.3.4/Python-3.3.4/Lib/test/test_urllibnet.py", line 143, in urlretrieve file_location, info = urllib.request.urlretrieve(*args, **kwargs) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 181, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp: File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 156, in urlopen return opener.open(url, data, timeout) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 475, in open response = meth(req, response) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 587, in http_response 'http', request, response, code, msg, hdrs) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 507, in error result = self._call_chain(*args) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 447, in _call_chain result = func(*args) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 692, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 475, in open response = meth(req, response) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 587, in http_response 'http', request, response, code, msg, hdrs) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 513, in error return self._call_chain(*args) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 447, in _call_chain result = func(*args) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 595, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: NOT FOUND ====================================================================== ERROR: test_reporthook (test.test_urllibnet.urlretrieveNetworkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/foo/python3.3.4/Python-3.3.4/Lib/test/test_urllibnet.py", line 189, in test_reporthook with self.urlretrieve(self.logo, reporthook=recording_reporthook) as ( File "/home/foo/python3.3.4/Python-3.3.4/Lib/contextlib.py", line 48, in __enter__ return next(self.gen) File "/home/foo/python3.3.4/Python-3.3.4/Lib/test/test_urllibnet.py", line 143, in urlretrieve file_location, info = urllib.request.urlretrieve(*args, **kwargs) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 181, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp: File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 156, in urlopen return opener.open(url, data, timeout) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 475, in open response = meth(req, response) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 587, in http_response 'http', request, response, code, msg, hdrs) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 507, in error result = self._call_chain(*args) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 447, in _call_chain result = func(*args) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 692, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 475, in open response = meth(req, response) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 587, in http_response 'http', request, response, code, msg, hdrs) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 513, in error return self._call_chain(*args) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 447, in _call_chain result = func(*args) File "/home/foo/python3.3.4/Python-3.3.4/Lib/urllib/request.py", line 595, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: NOT FOUND ====================================================================== ERROR: test_specified_path (test.test_urllibnet.urlretrieveNetworkTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/foo/python3.3.4/Python-3.3.4/Lib/test/test_urllibnet.py", line 165, in test_specified_path self.assertTrue(f.read(), "reading from temporary file failed") File "/home/foo/python3.3.4/Python-3.3.4/Lib/codecs.py", line 301, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte ---------------------------------------------------------------------- Ran 13 tests in 1.414s FAILED (errors=5) test test_urllibnet failed /home/foo/python3.3.4/Python-3.3.4/Lib/test/regrtest.py:1266: ResourceWarning: unclosed gc.collect() make: *** [test] Error 1