Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch our doctest handing to pytest-doctestplus #2729

Open
flying-sheep opened this issue Nov 3, 2023 · 2 comments
Open

Switch our doctest handing to pytest-doctestplus #2729

flying-sheep opened this issue Nov 3, 2023 · 2 comments

Comments

@flying-sheep
Copy link
Member

What kind of feature would you like to request?

Other?

Please describe your wishes

Depends on

@flying-sheep
Copy link
Member Author

It could also handle problems like #2816 (comment)

@ivirshup
Copy link
Member

ivirshup commented Feb 8, 2024

The problem referenced above is that we want to skip some doctests when using pandas<2 since outputs changed slightly.

doctestplus doesn't currently solve that problem, since we use doctest-requires to skip a block when that block exists in a docstring. doctest-requires blocks only work in .rst files. For code files there's only the option to skip the whole file via __doctest_requires__

https://github.com/scientific-python/pytest-doctestplus?tab=readme-ov-file#doctest-dependencies

I think we can request this feature, but it doesn't exist now.

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

No branches or pull requests

2 participants