Issue #68 invalid

HTML generation fails on Windows in directories that contain upper-case letters

Aviv Ben-Yosef
created an issue

Using coverage 3.3.1 and nose 0.11.1 on the following: c:\build\proj_ init .py (all dirs empty, _ _init empty)

With nosetests --with-coverage --cover-html (in "build" dir) works, but renaming "build" to "bUild" fails:



Name Stmts Exec Cover Missing

proj 1 1 100%
Traceback (most recent call last):
File "C:\xpyv\Scripts\", line 8, in <module> load_entry_point('nose==0.11.1', 'console_scripts', 'nosetests')() File "C:\xpyv\lib\site-packages\nose-0.11.1-py2.6.egg\nose\", line 113, in init argv=argv, testRunner=testRunner, testLoader=testLoader) File "C:\xpyv\\", line 817, in init File "C:\xpyv\lib\site-packages\nose-0.11.1-py2.6.egg\nose\", line 192, in runTests result = File "C:\xpyv\lib\site-packages\nose-0.11.1-py2.6.egg\nose\", line 63, in run result.printErrors() File "C:\xpyv\lib\site-packages\nose-0.11.1-py2.6.egg\nose\", line 88, in printErrors File "C:\xpyv\lib\site-packages\nose-0.11.1-py2.6.egg\nose\plugins\", line 82, in call return*arg, kw) File "C:\xpyv\lib\site-packages\nose-0.11.1-py2.6.egg\nose\plugins\", line 150, in simple result = meth(*arg, kw) File "C:\xpyv\lib\site-packages\nose-0.11.1-py2.6.egg\nose\plugins\", line 176, in report self.coverHtmlDir) File "C:\xpyv\lib\site-packages\nose-0.11.1-py2.6.egg\nose\plugins\", line 202, in htmlAnnotate data = open(coverfile, 'r').read().split('\n') IOError: [Errno 2] No such file or directory: 'c:\bUild\proj\,cover'


I've found out that removing the "if not cu.relative: pass" in fixes this, but could not understand the root cause.

Comments (4)

  1. Log in to comment