[issue7665] test_urllib2 fails if path contains "\"
Florent Xicluna
report at bugs.python.org
Sun Jan 10 17:50:26 CET 2010
New submission from Florent Xicluna <laxyf at yahoo.fr>:
/tmp/py2u… → un\icode $ ./python Lib/test/regrtest.py test_urllib2
test_urllib2
test test_urllib2 failed -- Traceback (most recent call last):
File "/tmp/py2u… → un\icode/Lib/test/test_urllib2.py", line 36, in test_trivial
f = urllib2.urlopen(file_url)
File "/tmp/py2u… → un\icode/Lib/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/tmp/py2u… → un\icode/Lib/urllib2.py", line 391, in open
response = self._open(req, data)
File "/tmp/py2u… → un\icode/Lib/urllib2.py", line 409, in _open
'_open', req)
File "/tmp/py2u… → un\icode/Lib/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/tmp/py2u… → un\icode/Lib/urllib2.py", line 1260, in file_open
return self.open_local_file(req)
File "/tmp/py2u… → un\icode/Lib/urllib2.py", line 1297, in open_local_file
raise URLError(msg)
URLError: <urlopen error [Errno 2] No such file or directory: '/tmp/py2u\xe2\x80\xa6 \xe2\x86\x92 un/icode/Lib/urllib2.pyc'>
1 test failed:
test_urllib2
----------
components: Tests
messages: 97522
nosy: flox
severity: normal
status: open
title: test_urllib2 fails if path contains "\"
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7665>
_______________________________________
More information about the Python-bugs-list
mailing list