Message86713
| Author |
ocean-city |
| Recipients |
ocean-city |
| Date |
2009年04月28日.01:43:21 |
| SpamBayes Score |
5.602317e-10 |
| Marked as misclassified |
No |
| Message-id |
<1240883003.46.0.843478025116.issue5861@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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\\test\\@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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年04月28日 01:43:23 | ocean-city | set | recipients:
+ ocean-city |
| 2009年04月28日 01:43:23 | ocean-city | set | messageid: <1240883003.46.0.843478025116.issue5861@psf.upfronthosting.co.za> |
| 2009年04月28日 01:43:22 | ocean-city | link | issue5861 messages |
| 2009年04月28日 01:43:21 | ocean-city | create |
|