[New-bugs-announce] [issue7043] test_urllib: constructLocalFileUrl returns invalid URLs on Windows
Sridhar Ratnakumar
report at bugs.python.org
Sat Oct 3 02:29:21 CEST 2009
New submission from Sridhar Ratnakumar <sridharr at activestate.com>:
This error happens on Windows. The culprit seems to be the
`constructLocalFileUrl` method that is constructing invalid URLs.
Traceback (most recent call last):
File "C:\Python26\lib\test\test_urllib.py", line 241, in test_copy
test_support.TESTFN), second_temp)
File "C:\Python26\lib\urllib.py", line 94, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "C:\Python26\lib\urllib.py", line 238, in retrieve
fp = self.open(url, data)
File "C:\Python26\lib\urllib.py", line 206, in open
return getattr(self, name)(url)
File "C:\Python26\lib\urllib.py", line 468, in open_file
return self.open_local_file(url)
File "C:\Python26\lib\urllib.py", line 482, in open_local_file
raise IOError(e.errno, e.strerror, e.filename)
IOError: [Errno 22] The filename, directory name, or volume label syntax
is incorrect: '\\\\\\C|\\DOCUME~1\\apy\\LOCALS~1\\Temp\\autotest\\@test'
----------
components: Tests
messages: 93463
nosy: srid
severity: normal
status: open
title: test_urllib: constructLocalFileUrl returns invalid URLs on Windows
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7043>
_______________________________________
More information about the New-bugs-announce
mailing list