Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit db154ec

Browse files
author
Matthias Koeppe
committed
sage.doctest.parsing.RIFtol: Fixup when RealIntervalField not available
1 parent 13eed83 commit db154ec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/sage/doctest/parsing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ def RIFtol(*args):
9090
from warnings import warn
9191
warn("RealIntervalField not available, ignoring all tolerance specifications in doctests")
9292
def fake_RIFtol(*args):
93-
if len(args) == 2:
94-
return (args[0] + args[1]) / 2
95-
return args[0]
93+
return 0
9694
_RIFtol = fake_RIFtol
9795
else:
9896
_RIFtol = RealIntervalField(1044)

0 commit comments

Comments
 (0)