doctest_public_modules.py -t filename
fails if a docstring example ends without a blank line
#105
Labels
bug
Something isn't working
The technical problem is that the docstring ends without a blank line --- https://github.com/scipy/scipy/blob/main/scipy/linalg/_basic.py#L1028 --- so the parser fails to detect the end of example and consumes the rest of the docstring + code all the way until the next blank line.
This does not happen for
-s submodule
: the-t
invocation goes through thetestfile
nottestmod
. Another consequence of this is that withtestfile
we end up with a single Doctest with all examples from all docstrings. Withtestmod
we'd get a Doctest per docstring, but not withtestfile
.Stepping back, using
testfile
seems to be a hack really.The text was updated successfully, but these errors were encountered: