Skip to content

Coverage.py incompatible with pyratemp #221

@nedbat

Description

@nedbat

Originally reported by Anonymous


Coverage.py doesn't work with the pyratemp library that can be found here: http://www.simple-is-better.org/template/pyratemp.html

I did setup a small test case:

template.txt:
Hello @!thing!@!

test.py:
import pyratemp

t = pyratemp.Template(filename="template.txt")
print t(thing="World")

pyratemp.py:
http://www.simple-is-better.org/template/pyratemp-current/pyratemp.py

Running python-coverage run test.py works, but when running python-coverage html in the same directory, this error is shown:

No source for code: '/home/marten/Bureaublad/coverage-test': [Errno 21] Is a directory: '/home/marten/Bureaublad/coverage-test'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions