Skip to content

Commit 3535b98

Browse files
author
Matthias Koeppe
committed
FunctionField._test_derivation: Do not test what cannot be tested
1 parent 17cb18b commit 3535b98

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sage/rings/function_field/function_field.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,10 @@ def _test_derivation(self, **options):
745745
tester = self._tester(**options)
746746
S = tester.some_elements()
747747
K = self.constant_base_field().some_elements()
748-
d = self.derivation()
748+
try:
749+
d = self.derivation()
750+
except ImportError:
751+
return
749752
from itertools import product
750753
# Non-zero
751754
tester.assertFalse(d.is_zero())

0 commit comments

Comments
 (0)