From d34300a3e1972bcc6ec72f28b69b77a96c5f402d Mon Sep 17 00:00:00 2001 From: Travis Scrimshaw Date: Sun, 31 Mar 2024 21:33:47 +0900 Subject: [PATCH] Updating test in element.pyx for matrix.is_nilpotent. --- src/sage/structure/element.pyx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sage/structure/element.pyx b/src/sage/structure/element.pyx index 17e8fb51690..89a482e4c83 100644 --- a/src/sage/structure/element.pyx +++ b/src/sage/structure/element.pyx @@ -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