[Pytest-commit] Issue #502: py.test --doctest-modules doesn't skip setup.py (hpk42/pytest)

offbyone issues-reply at bitbucket.org
Sat Apr 12 14:30:48 CEST 2014


New issue 502: py.test --doctest-modules doesn't skip setup.py
https://bitbucket.org/hpk42/pytest/issue/502/pytest-doctest-modules-doesnt-skip-setuppy

offbyone:

If I have the following path layout:

    /setup.py
    /package_name/
    /package_name/__init__.py

I expect `--doctest-modules` not to read in setup.py. I can control it with conftest.py, but that seems a bit iffy. A better way might be to (IF the project is a setuptools package) take advantage of the setuptools project declaration to find the set of modules under test there.

In any case, `setup.py` should be skipped.




More information about the pytest-commit mailing list