Skip to content

add doctest_ignore_import_errors_modules #110

Closed

Description

@bsipocz

Instead of a blank bool doctest_ignore_import_errors option, add that takes a string value for list of files/modules where imports should be ignored. E.g. that should be used to skip import issues for e.g. setup_package.py files, etc.
With this the plugins behaviour could match the pytest native doctest more, while we can keep some of the flexibility we needed for extension_helpers/astropy_helpers.

Activity

  1. pllim commented on May 11, 2020

    @pllim
    Contributor

    @astrofrog pointed out that this can be similar to https://github.com/astropy/astropy/blob/a0f5940bd00ff7259ed6b2391bfddecd007a2a43/setup.cfg#L95

    He also pointed out that there is already doctest_norecursedirs but maybe that is not enough. Maybe even a new __doctest_subpackage_requires__ to prevent recursion.

  2. astrofrog commented on May 15, 2020

    @astrofrog
    Contributor

    I think I have a clean solution, I'll open a PR shortly

  3. astrofrog commented on May 17, 2020

    @astrofrog
    Contributor

    See #112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions