G:\>c:\Python31\python.exe -m test.test_urllib2 doctest (test.test_urllib2) ... 62 tests with zero failures doctest (urllib.request) ... 11 tests with zero failures test_parse_http_list (__main__.TrivialTests) ... ok test_trivial (__main__.TrivialTests) ... ERROR test_add_non_handler (__main__.OpenerDirectorTests) ... ok test_badly_named_methods (__main__.OpenerDirectorTests) ... ok test_handled (__main__.OpenerDirectorTests) ... ok test_handler_order (__main__.OpenerDirectorTests) ... ok test_http_error (__main__.OpenerDirectorTests) ... ok test_processors (__main__.OpenerDirectorTests) ... ok test_raise (__main__.OpenerDirectorTests) ... ok test_basic_and_digest_auth_handlers (__main__.HandlerTests) ... ok test_basic_auth (__main__.HandlerTests) ... ok test_basic_auth_with_single_quoted_realm (__main__.HandlerTests) ... ok test_cookie_redirect (__main__.HandlerTests) ... ok test_cookies (__main__.HandlerTests) ... ok test_errors (__main__.HandlerTests) ... ok test_file (__main__.HandlerTests) ... ok test_ftp (__main__.HandlerTests) ... ok test_http (__main__.HandlerTests) ... ok test_http_doubleslash (__main__.HandlerTests) ... ok test_proxy (__main__.HandlerTests) ... ok test_proxy_basic_auth (__main__.HandlerTests) ... ok test_proxy_https (__main__.HandlerTests) ... ok test_redirect (__main__.HandlerTests) ... ok test_build_opener (__main__.MiscTests) ... ok test_add_data (__main__.RequestTests) ... ok test_get_full_url (__main__.RequestTests) ... ok test_get_host (__main__.RequestTests) ... ok test_get_host_unquote (__main__.RequestTests) ... ok test_get_type (__main__.RequestTests) ... ok test_method (__main__.RequestTests) ... ok test_proxy (__main__.RequestTests) ... ok test_selector (__main__.RequestTests) ... ok ====================================================================== ERROR: test_trivial (__main__.TrivialTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\Python31\lib\urllib\request.py", line 1189, in open_local_file stats = os.stat(localfile) WindowsError: [Error 3] The system cannot find the path specified: '\\Python31\\ lib\\urllib\\request.py' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "c:\Python31\lib\test\test_urllib2.py", line 32, in test_trivial f = urllib.request.urlopen(file_url) File "c:\Python31\lib\urllib\request.py", line 119, in urlopen return _opener.open(url, data, timeout) File "c:\Python31\lib\urllib\request.py", line 347, in open response = self._open(req, data) File "c:\Python31\lib\urllib\request.py", line 365, in _open '_open', req) File "c:\Python31\lib\urllib\request.py", line 325, in _call_chain result = func(*args) File "c:\Python31\lib\urllib\request.py", line 1168, in file_open return self.open_local_file(req) File "c:\Python31\lib\urllib\request.py", line 1203, in open_local_file raise URLError(msg) urllib.error.URLError: ---------------------------------------------------------------------- Ran 32 tests in 5.359s FAILED (errors=1) Traceback (most recent call last): File "c:\Python31\lib\runpy.py", line 128, in _run_module_as_main "__main__", fname, loader, pkg_name) File "c:\Python31\lib\runpy.py", line 34, in _run_code exec(code, run_globals) File "c:\Python31\lib\test\test_urllib2.py", line 1191, in test_main(verbose=True) File "c:\Python31\lib\test\test_urllib2.py", line 1188, in test_main support.run_unittest(*tests) File "c:\Python31\lib\test\support.py", line 878, in run_unittest _run_suite(suite) File "c:\Python31\lib\test\support.py", line 861, in _run_suite raise TestFailed(err) test.support.TestFailed: Traceback (most recent call last): File "c:\Python31\lib\urllib\request.py", line 1189, in open_local_file stats = os.stat(localfile) WindowsError: [Error 3] The system cannot find the path specified: '\\Python31\\ lib\\urllib\\request.py' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "c:\Python31\lib\test\test_urllib2.py", line 32, in test_trivial f = urllib.request.urlopen(file_url) File "c:\Python31\lib\urllib\request.py", line 119, in urlopen return _opener.open(url, data, timeout) File "c:\Python31\lib\urllib\request.py", line 347, in open response = self._open(req, data) File "c:\Python31\lib\urllib\request.py", line 365, in _open '_open', req) File "c:\Python31\lib\urllib\request.py", line 325, in _call_chain result = func(*args) File "c:\Python31\lib\urllib\request.py", line 1168, in file_open return self.open_local_file(req) File "c:\Python31\lib\urllib\request.py", line 1203, in open_local_file raise URLError(msg) urllib.error.URLError: