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
Fix timeout in feature test for Mathematica #33248
Comments
comment:1
Set milestone to sage-9.6 after Sage 9.5 release. |
comment:2
Could we give up on Maybe using one of the answers to: |
comment:3
Do you know at which line it gets stuck in what is below ? def _is_present(self):
"""
TESTS::
sage: from sage.features.interfaces import InterfaceFeature
sage: from sage.interfaces.sage0 import Sage
sage: f = InterfaceFeature("sage0", "sage.interfaces.sage0")
sage: f.is_present()
FeatureTestResult('sage0', True)
"""
result = self.module.is_present()
if not result:
return result
m = importlib.import_module(self.module.name)
try:
interface = getattr(m, self.name)
except Exception as exception:
return FeatureTestResult(self, False,
reason=f"Interface {self.name} cannot be imported: {exception}")
try:
interface('2+3')
return FeatureTestResult(self, True)
except Exception as exception:
return FeatureTestResult(self, False,
reason=f"Interface {interface} is not functional: {exception}") |
comment:4
I think this doctest should be marked |
comment:5
Mathematica is installed on that machine Running
This is likely what makes the feature detection hang. |
Changed keywords from features, mathematica to features, mathematica, timeout |
Commit: |
Branch: u/slelievre/33248 |
Author: Samuel Lelièvre |
This comment has been minimized.
This comment has been minimized.
Reviewer: Matthias Koeppe |
Changed branch from u/slelievre/33248 to |
Doctesting
src/sage/features/interfaces.py
fails for me with a timeout.
In this ticket we mark the example
# not tested
to skip it in doctests.CC: @slel
Component: doctest framework
Keywords: features, mathematica, timeout
Author: Samuel Lelièvre
Branch/Commit:
868109b
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/33248
The text was updated successfully, but these errors were encountered: