Skip to content

Commit

Permalink
Updating test in element.pyx for matrix.is_nilpotent.
Browse files Browse the repository at this point in the history
  • Loading branch information
tscrim committed Mar 31, 2024
1 parent 8ace5c7 commit d34300a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sage/structure/element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2845,9 +2845,7 @@ cdef class RingElement(ModuleElement):
True
sage: m = matrix(QQ, 3, [[3,2,3], [9,0,3], [-9,0,-3]]) # needs sage.modules
sage: m.is_nilpotent() # needs sage.modules
Traceback (most recent call last):
...
AttributeError: '...' object has no attribute 'is_nilpotent'...
True
"""
if self.is_unit():
return False
Expand Down

0 comments on commit d34300a

Please sign in to comment.