Closed mkoeppe closed 2 years ago
Author: Matthias Koeppe, ...
Branch pushed to git repo; I updated commit sha1. New commits:
945132b | src/sage/features/interfaces.py: Fix up |
Changed author from Matthias Koeppe, ... to Matthias Koeppe
Branch pushed to git repo; I updated commit sha1. New commits:
944bb74 | src/sage/features/interfaces.py: Add doctests |
Looks good to me. Doctests pass. Patchbot is green. The coverage is not 100% because of few docstring missing in staticmethods __classcall__
but these are doctested in the doc of the the class just above. So, LGTM. I tested the functionnality. In particular, I get:
sage: from sage.features.interfaces import all_features
sage: [(f,f.is_present()) for f in all_features()]
[(Feature('magma'), FeatureTestResult('magma', False)),
(Feature('matlab'), FeatureTestResult('matlab', False)),
(Feature('mathematica'), FeatureTestResult('mathematica', False)),
(Feature('maple'), FeatureTestResult('maple', False)),
(Feature('macaulay2'), FeatureTestResult('macaulay2', False)),
(Feature('octave'), FeatureTestResult('octave', True)),
(Feature('scilab'), FeatureTestResult('scilab', False))]
which is sometimes True and sometimes False. Therefore, the routine works.
Reviewer: Sébastien Labbé
Thank you!
Changed branch from u/mkoeppe/features_for_interpreter_interfaces to 944bb74
Follow-up from #32649
CC: @kwankyu @seblabbe
Component: refactoring
Author: Matthias Koeppe
Branch/Commit:
944bb74
Reviewer: Sébastien Labbé
Issue created by migration from https://trac.sagemath.org/ticket/32866