Issue2317

classification
Title: test_urllib2 failure on Windows
Type: behaviour Severity: normal
Components: Library Versions: Jython 2.7
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: jeff.allen
Priority: Keywords: test failure causes

Created on 2015-04-06.21:12:03 by jeff.allen, last changed 2015-04-06.21:12:03 by jeff.allen.

Messages
msg9776 (view) Author: Jeff Allen (jeff.allen) Date: 2015-04-06.21:12:03
Observed on Windows 7 with Jython 2.7rc2, test_urllib2 fails one test:

======================================================================
ERROR: test_trivial (__main__.TrivialTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\jython\2.7rc2\Lib\test\test_urllib2.py", line 37, in test_trivial
    f = urllib2.urlopen(file_url)
  File "C:\jython\2.7rc2\Lib\urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "C:\jython\2.7rc2\Lib\urllib2.py", line 404, in open
    response = self._open(req, data)
  File "C:\jython\2.7rc2\Lib\urllib2.py", line 421, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "C:\jython\2.7rc2\Lib\urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "C:\jython\2.7rc2\Lib\urllib2.py", line 1317, in file_open
    return self.open_local_file(req)
  File "C:\jython\2.7rc2\Lib\urllib2.py", line 1357, in open_local_file
    raise URLError(msg)
URLError: <urlopen error [Errno 2] No such file or directory: '\\jython\\2.7rc2\\Lib\\urllib2$py.class'>

----------------------------------------------------------------------

The requested file does exist, and with exactly that capitalisation in the path.
History
Date User Action Args
2015-04-06 21:12:03jeff.allencreate