[issue5861] test_urllib fails on windows
Senthil orsent...@gmail.com added the comment: Fixed this in the revision: 72343. Agree to the comment on replacing '|' to ':' in pathname2url as windows recognizes it. test_urllib passes. -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5861 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5861] test_urllib fails on windows
Changes by Senthil orsent...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5861 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5861] test_urllib fails on windows
Senthil orsent...@gmail.com added the comment: I had made that change. tested only linux, where it was all pass. Shall address this one soon. -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5861 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5861] test_urllib fails on windows
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- dependencies: +a problem of urllib using open_local_file ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5861 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5861] test_urllib fails on windows
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Or another workaround is to change line path = '///' + drive + '|' from file ./Lib/nturl2path.py, i.e. '|' - ':' . -- nosy: +rpetrov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5861 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5861] test_urllib fails on windows
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Hello. I noticed test_urllib fails on windows. == ERROR: test_copy (__main__.urlretrieve_FileTests) -- Traceback (most recent call last): File test_urllib.py, line 241, in test_copy test_support.TESTFN), second_temp) File e:\python-dev\trunk\lib\urllib.py, line 94, in urlretrieve return _urlopener.retrieve(url, filename, reporthook, data) File e:\python-dev\trunk\lib\urllib.py, line 238, in retrieve fp = self.open(url, data) File e:\python-dev\trunk\lib\urllib.py, line 206, in open return getattr(self, name)(url) File e:\python-dev\trunk\lib\urllib.py, line 464, in open_file return self.open_local_file(url) File e:\python-dev\trunk\lib\urllib.py, line 478, in open_local_file raise IOError(e.errno, e.strerror, e.filename) IOError: [Errno 22] ネットワークに到達できません。ネットワークのトラブル シューテ ィングについては、Windows ヘルプを参照してください。: '\\E|\\python-dev\\tru nk\\lib\\tes...@test' (snip) This happens since r71780. Workaround is to add | to safe list of fullurl = quote(fullurl, safe=%/:=?~#+!$,;'@()*[]) # I don't know | is really safe. -- components: Library (Lib) messages: 86713 nosy: ocean-city severity: normal status: open title: test_urllib fails on windows versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5861 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5861] test_urllib fails on windows
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Python 2.7a0 (trunk, Apr 28 2009, 10:23:56) [MSC v.1200 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import urllib urllib.pathname2url(c:/foo) '///C|//foo' When | above is quoted, urllib.urlopen cannot handle quoted url. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5861 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5861] test_urllib fails on windows
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- dependencies: +urllib doesn't correct server returned urls ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5861 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com