Skip to content

py.test --doctest-modules doesn't skip setup.py #502

@pytestbot

Description

@pytestbot

Originally reported by: BitBucket: offbyone, GitHub: 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.


Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueeasy issue that is friendly to new contributorplugin: doctestsrelated to the doctests builtin pluginstatus: help wanteddevelopers would like help from experts on this topictype: enhancementnew feature or API change, should be merged into features branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions