I have a doctest in a separate .rst that I am able to run with
python -m doctest -v foo.rst
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.