Skip to content

Commit 1752a70

Browse files
committed
Fix randomly failing doctest
This is a "correct" fix because the `DeprecationWarning` is unrelated to the test.
1 parent 0c390a0 commit 1752a70

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/sage/rings/number_field/number_field_element_quadratic.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,8 +2399,6 @@ cdef class NumberFieldElement_quadratic(NumberFieldElement_absolute):
23992399
....: assert round(a+b*sqrt(2.)) == round(a+b*sqrt2), (a, b)
24002400
....: assert round(a+b*sqrt(3.)) == round(a+b*sqrt3), (a, b)
24012401
....: assert round(a+b*sqrt(5.)) == round(a+b*sqrt5), (a, b)
2402-
doctest...: DeprecationWarning: the default rounding for rationals, currently `away`, will be changed to `even`.
2403-
See https://github.com/sagemath/sage/issues/35473 for details.
24042402
"""
24052403
n = self.floor()
24062404
test = 2 * (self - n).abs()

0 commit comments

Comments
 (0)