Skip to content

cannot parse Cython when creating xml #601

@nedbat

Description

@nedbat

Originally reported by Ioannis Filippidis (Bitbucket: johnyf, GitHub: johnyf)


coverage.py cannot parse Cython code. Running coverage xml -i produces the warning Coverage.py warning: Could not parse Python file /path/dd/dd/cudd.pyx, which is a warning discussed in #396.

Without the -i option the output is Couldn't parse '/path/github/dd/dd/cudd.pyx' as Python source: 'invalid syntax' at line 27, where line 27 reads from libcpp cimport bool. (I am aware of Cython's annotating capability for coverage results, but that too takes xml as input.)

Does coverage.py support Cython? If not, are there any future plans in that direction?

Relevant also to: cython/cython#1508


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingxml

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions