-
-
Notifications
You must be signed in to change notification settings - Fork 522
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
doctests: Detect "safe" external features even if "--optional=external" is not used #32174
Comments
This comment has been minimized.
This comment has been minimized.
Dependencies: #32649 |
comment:5
Let's use this ticket to address the problem discovered in #32732 comment:10: Detection of Sage modules fails because the check runs before |
comment:9
Here's an approach to do feature enumeration Last 10 new commits:
|
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Author: Matthias Koeppe, ... |
comment:12
Indent |
comment:14
Rebased on 9.5.beta6 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:17
The Deprecate them? Or just remove them? |
comment:81
that's #32697 " |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:85
Thanks! |
comment:86
|
Changed branch from public/32174 to |
Changed commit from |
comment:90
Followup at #33045 for ffmpeg |
comment:91
Followup at #33101 for lrslib. |
comment:92
See also #33092 for ffmpeg and imagemagick. |
(from #30887 comment:28)
For some "safe" features such as
imagemagick
,rubiks
,4ti2
(#30887),pandoc
, it really shouldn't require the use ofexternal
to check for these.Likewise for the
PythonModule
features for Sage modules introduced in #32614. By delaying the test for these features, using thesage.doctest.external
machinery, we fix the broken detection of some of these features. (This is why the ticket is marked "critical".)This is a step toward #30746 (
sage.doctest.control
: Replace use ofsage.misc.package.list_packages
)With this ticket, more doctests will be run by default. This may lead to new failures (discovered by patchbot for instance). But that does not mean it is introduced in this ticket, just that they were existing before this ticket, but simply not executed.
For example, let's compare the behavior of the following command:
returns:
BEFORE (9.5.beta7):
AFTER (9.5.beta7 + #32174):
We observe that the number of tests run went from 235 to 237, because the feature pandoc was detected. Note that the doctest failure is already tracked at #32697.
Depends on #32866
Depends on #27744
CC: @dimpase @slel @antonio-rojas @kiwifb @kwankyu @seblabbe @videlec
Component: doctest framework
Author: Matthias Koeppe, Sébastien Labbé
Branch:
41c4cd4
Reviewer: Sébastien Labbé
Issue created by migration from https://trac.sagemath.org/ticket/32174
The text was updated successfully, but these errors were encountered: