Source directive doesn't work for packages under Jython · Issue #100 · nedbat/coveragepy (original) (raw)
Originally reported by Geoff Bache (Bitbucket: geoffbache, GitHub: Unknown)
In my rc file, I write
but this fails under Jython, because __file__
returns something like
/path/to/site-packages/mypackage/__init__$py.class
and there is no code for handling this in _check_for_packages or _source_for_file.
The line
if f.startswith('__init__.'):
returns the wrong answer, and a Jython case needs adding to _source_for_file.
- Bitbucket: https://bitbucket.org/ned/coveragepy/issue/100
- This issue had attachments: jython.bundle. See the original issue for details.