No doctests are executed in sage/modular/pollack_stevens/padic_lseries.py

53 views
Skip to first unread message

Jens-Erik Riedel

unread,
Jun 12, 2024, 10:31:01 AMJun 12
to sage-support
When running "sage -t" on the file sage/modular/pollack_stevens/padic_lseries.py no doctests are executed although the file contains quite a lot of doctests.
I think the reason for that is a typo in the very first line of the file:
  # sage.doctest: needs sage.ring.padics
It must be "rings" instead of "ring.
This is in Sage 10.3 as well as in Sage 10.4.beta9.
There is another typo in line 177 of that file: In the doctest comment a comma is missing between "indirect doctest" and "long time".
After having corrected these two typos all doctests in sage/modular/pollack_stevens/padic_lseries.py are successfully executed.

julian...@gmail.com

unread,
Jun 12, 2024, 10:46:45 AMJun 12
to sage-support
Would you mind creating a Pull Request with these changes at https://github.com/sagemath/sage?

julian

Jens-Erik Riedel

unread,
Jun 13, 2024, 5:22:54 AM (13 days ago) Jun 13
to sage-support
Thanks to a hint by Dima I found the same typo in two other files.
In sage/structure/factory.pyx line 523 it prevents a doctest from being run.
In sage/rings/polynomial/padics/polynomial_padic.py line 277 it is merely cosmetic.
I will create a Pull Request with fixes for all three occurrences of this typo.

Vincent Delecroix

unread,
Jun 13, 2024, 10:40:27 AM (13 days ago) Jun 13
to sage-s...@googlegroups.com
Generalizing the problem of the OP : it is a severe issue that a tag
can completely prevent a file from being tested.
> --
> 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 on the web visit https://groups.google.com/d/msgid/sage-support/9767d29d-889a-4906-abde-53c4d6340cddn%40googlegroups.com.

Jens-Erik Riedel

unread,
Jun 13, 2024, 11:56:16 AM (13 days ago) Jun 13
to sage-support
I have created a pull request for this issue.

Matthias Koeppe

unread,
Jun 13, 2024, 2:50:23 PM (13 days ago) Jun 13
to sage-support
I agree, the problem is that currently we cannot distinguish typo'd doctest tags from valid doctest tags that are not present.
Reply all
Reply to author
Forward
0 new messages