DOC: remove SKIP in the rst doctests
See original GitHub issueThere are plenty of +SKIP
doctests directives in the documentation. Ideally, we should not need them, see #14970 for background information.
Procedure: edit the rst files to make the tests more robust or correct. Then, run
python tools/refguide_check.py --rst
to check the result.
This issue should be considered after #15848
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:15 (15 by maintainers)
Top Results From Across the Web
Remove #doctest: +SKIP where possible · Issue #6959 · sympy ...
Here is a copy of the list: So looking through `git grep -A 3 "doctest: +SKIP"`, it looks like we still skip the...
Read more >Python doctest: Skip entire block? - Stack Overflow
Doctest's +SKIP directive only works per line, which would mean adding 10s of lines to my real-world example. Ugly!
Read more >doctest — Test interactive Python examples — Python 3.11.1 ...
First import ``factorial`` from the ``example`` module: >>> from example ... That doctest succeeds if ValueError is raised, with the list.remove(x): x not ......
Read more >sphinx.ext.doctest - Sphinx documentation
This extension allows you to test such code snippets in the documentation in a natural way. If you mark the code blocks as...
Read more >Run/Debug Configuration: Doctests - PyCharm - JetBrains
If doctests are presented as separate files, PyCharm allows opening such files as reStructuredText files with .rst extension. Such files are marked with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi all following here: In branch https://github.com/pdebuyl/numpy/tree/fix_doctest_for_pytest I have
passing except for file
doc/source/reference/arrays.nditer.cython.rst
Also,
passes.
If that is appropriate, I would like to submit a PR of the above branch to make progress in the line of testing the docs with pytest https://github.com/numpy/numpy/issues/15845
The number of SKIP directives is now rather limited, this issue could be closed as well.
Hello, sorry for stepping in. Just referencing #19898 here because it is fixing part of this issue.