Running doctests on an external package in Sage 10.8+

30 views
Skip to first unread message

Jacob Bond

unread,
Jul 18, 2026, 1:35:44 PM (5 days ago) Jul 18
to sage-support
Previously (before Sage 10.8), I was able to run doctests on an external package using
`sage -t package_dir`
but with Sage 10.8+, `-t` is no longer a valid argument and `sage --help` doesn't seem to offer a similar capability. Is there a way to use Sage 10.8+ for running doctests on external packages?

Dima Pasechnik

unread,
Jul 18, 2026, 1:59:53 PM (5 days ago) Jul 18
to sage-s...@googlegroups.com
Since then, there is a difference between the installed "sage" script,
and the one in the top level of the
Sage source directory. That is, with Sage installed from source, you can run
./sage -t (from the top level of the source tree) and it will work as before.

HTH
Dima
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/sage-support/9eac7df5-1617-4eef-a194-3cbd62382a27n%40googlegroups.com.

Jacob Bond

unread,
Jul 18, 2026, 2:38:30 PM (5 days ago) Jul 18
to sage-support
Thank you!  I have Sage installed from conda-forge, but looking at the "sage" script in the top level of the source directory, it ultimately calls bin/sage and passes any arguments.  So running <conda-env>/bin/sage -t <package-dir> should work (and seems to work).
Reply all
Reply to author
Forward
0 new messages