10000 py312: fix AttributeError doctests (manual changes) · sagemath/sage@5e34da9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5e34da9

Browse files
tornariaMatthias Koeppe
authored andcommitted
py312: fix AttributeError doctests (manual changes)
In python 3.12, attribute errors add a suggestion at the end of the usual error message ("Did you mean ...?"). We add ... at the end of these doctest outputs to fix it. This commit has a few manual changes which didn't match the sed pattern in the previous commit.
1 parent 92088d3 commit 5e34da9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/sage/structure/element.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2856,7 +2856,7 @@ cdef class RingElement(ModuleElement):
28562856
sage: m.is_nilpotent() # needs sage.modules
28572857
Traceback (most recent call last):
28582858
...
2859-
AttributeError: ... object has no attribute 'is_nilpotent'...
2859+
AttributeError: '...' object has no attribute 'is_nilpotent'...
28602860
"""
28612861
if self.is_unit():
28622862
return False

src/sage/symbolic/assumptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def assume(*args):
636636
Traceback (most recent call last):
637637
...
638638
AttributeError: 'sage.rings.integer.Integer' object has no
639-
attribute 'assume'
639+
attribute 'assume'...
640640
641641
Ensure that we can combine the two types of assumptions, as documented::
642642

src/sage/symbolic/expression.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13712,7 +13712,7 @@ cdef get_dynamic_class_for_function(unsigned serial):
1371213712
Traceback (most recent call last):
1371313713
...
1371413714
AttributeError: 'sage.symbolic.expression.Expression' object has no
13715-
attribute 'argp1'
13715+
attribute 'argp1'...
1371613716
sage: t = (e + 1).op[0]; t
1371713717
tfunc(x)
1371813718
sage: t

0 commit comments

Comments
 (0)
0