Skip to content

Commit 6e904cf

Browse files
committed
Drop obsolete arb doctest tags
1 parent 633b368 commit 6e904cf

File tree

4 files changed

+6
-20
lines changed

4 files changed

+6
-20
lines changed

src/.relint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@
7171
magic doctest comments should appear on the "sage:" line, not "....:" lines
7272
# see optional_regex in src/sage/doctest/parsing.py
7373
# "indirect doctest" is from src/bin/sage-coverage
74-
pattern: '^[ ]*[.][.][.][.]:.*#.*(arb216|arb218|py2|py3|long time|not implemented|not tested|known bug|optional|indirect doctest)'
74+
pattern: '^[ ]*[.][.][.][.]:.*#.*(py2|py3|long time|not implemented|not tested|known bug|optional|indirect doctest)'

src/sage/doctest/parsing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def fake_RIFtol(*args):
9595
ansi_escape_sequence = re.compile(r"(\x1b[@-Z\\-~]|\x1b\[.*?[@-~]|\x9b.*?[@-~])")
9696

9797
special_optional_regex = (
98-
"arb216|arb218|py2|long time|not implemented|not tested|optional|needs|known bug"
98+
"py2|long time|not implemented|not tested|optional|needs|known bug"
9999
)
100100
tag_with_explanation_regex = r"((?:\w|[.])*)\s*(?:\((?P<cmd_explanation>.*?)\))?"
101101
optional_regex = re.compile(
@@ -136,8 +136,6 @@ def parse_optional_tags(
136136
- ``'not tested'``
137137
- ``'known bug'`` (possible values are ``None``, ``linux`` and ``macos``)
138138
- ``'py2'``
139-
- ``'arb216'``
140-
- ``'arb218'``
141139
- ``'optional - FEATURE...'`` or ``'needs FEATURE...'`` --
142140
the dictionary will just have the key ``'FEATURE'``
143141

src/sage/rings/complex_arb.pyx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4792,18 +4792,14 @@ cdef class ComplexBall(RingElement):
47924792
47934793
sage: n = CBF(1,1)
47944794
sage: m = CBF(-2/3, 3/5)
4795-
sage: n.elliptic_pi_inc(CBF.pi()/2, m) # arb216
4796-
[0.8934793755173 +/- ...e-14] + [0.95707868710750 +/- ...e-15]*I
4797-
sage: n.elliptic_pi_inc(CBF.pi()/2, m) # arb218 - this is a regression, see :trac:28623
4795+
sage: n.elliptic_pi_inc(CBF.pi()/2, m) # this is a regression, see :trac:28623
47984796
nan + nan*I
47994797
sage: n.elliptic_pi(m)
48004798
[0.8934793755173...] + [0.957078687107...]*I
48014799
48024800
sage: n = CBF(2, 3/7)
48034801
sage: m = CBF(-1/3, 2/9)
4804-
sage: n.elliptic_pi_inc(CBF.pi()/2, m) # arb216
4805-
[0.2969588746419 +/- ...e-14] + [1.3188795332738 +/- ...e-14]*I
4806-
sage: n.elliptic_pi_inc(CBF.pi()/2, m) # arb218 - this is a regression, see :trac:28623
4802+
sage: n.elliptic_pi_inc(CBF.pi()/2, m) # this is a regression, see :trac:28623
48074803
nan + nan*I
48084804
sage: n.elliptic_pi(m)
48094805
[0.296958874641...] + [1.318879533273...]*I

src/sage/rings/real_arb.pyx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,7 @@ cdef int arb_to_mpfi(mpfi_t target, arb_t source, const long precision) except -
294294
295295
EXAMPLES::
296296
297-
sage: RIF(RBF(2)**(2**100)) # arb216 # indirect doctest
298-
Traceback (most recent call last):
299-
...
300-
ArithmeticError: Error converting arb to mpfi. Overflow?
301-
sage: RIF(RBF(2)**(2**100)) # arb218 # indirect doctest
297+
sage: RIF(RBF(2)**(2**100))
302298
[5.8756537891115869e1388255822130839282 .. +infinity] # 64-bit
303299
[2.098... .. +infinity] # 32-bit
304300
@@ -1729,11 +1725,7 @@ cdef class RealBall(RingElement):
17291725
::
17301726
17311727
sage: b = RBF(2)^(2^1000)
1732-
sage: b.mid() # arb216
1733-
Traceback (most recent call last):
1734-
...
1735-
RuntimeError: unable to convert to MPFR (exponent out of range?)
1736-
sage: b.mid() # arb218
1728+
sage: b.mid()
17371729
+infinity
17381730
17391731
.. SEEALSO:: :meth:`rad`, :meth:`squash`

0 commit comments

Comments
 (0)