Skip to content

path issue with -m doctest #256

Open
@nedbat

Description

@nedbat

Originally reported by James Tauber (Bitbucket: jtauber, GitHub: jtauber)


I have a doctest in a separate .rst that I am able to run with

python -m doctest -v foo.rst

(where foo.rst includes an import foo in it and foo.py is alongside foo.rst in the directory).

However, when I attempt

coverage run -m doctest -v foo.rst

the tests all fail (and no coverage data is collected) because doctest is unable to import foo.


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingexoticUnusual execution environment

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions