From ce24186223fc5340a15d06b0a708a2f8ddb6e0f8 Mon Sep 17 00:00:00 2001 From: Franco Saliola Date: Sun, 6 Oct 2019 19:35:17 -0400 Subject: [PATCH] simplify some doctests --- src/sage/matrix/matrix1.pyx | 4 ++-- src/sage/modules/free_module_element.pyx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sage/matrix/matrix1.pyx b/src/sage/matrix/matrix1.pyx index 3700bc2f184..156c50516df 100644 --- a/src/sage/matrix/matrix1.pyx +++ b/src/sage/matrix/matrix1.pyx @@ -446,8 +446,8 @@ cdef class Matrix(Matrix0): Entries of the matrix get promoted to the base ring (:trac:`28566`):: sage: R. = QQ[] - sage: m = macaulay2(matrix(R, [[1, 2], [3, 4]])) # optional - macaulay2 - sage: m.ring()._operator('===', R._macaulay2_())._sage_() # optional - macaulay2 + sage: m = macaulay2(matrix(R, [[1, 2], [3, 4]])) # optional - macaulay2 + sage: m.ring()._operator('===', R).sage() # optional - macaulay2 True """ if macaulay2 is None: diff --git a/src/sage/modules/free_module_element.pyx b/src/sage/modules/free_module_element.pyx index a779141c6fc..2925aa01888 100644 --- a/src/sage/modules/free_module_element.pyx +++ b/src/sage/modules/free_module_element.pyx @@ -3510,8 +3510,8 @@ cdef class FreeModuleElement(Vector): # abstract base class Entries of the vector get promoted to the base ring:: sage: R. = QQ[] - sage: v = macaulay2(vector(R, [1, 2])) # optional - macaulay2 - sage: v.ring()._operator('===', R._macaulay2_())._sage_() # optional - macaulay2 + sage: v = macaulay2(vector(R, [1, 2])) # optional - macaulay2 + sage: v.ring()._operator('===', R).sage() # optional - macaulay2 True """ if macaulay2 is None: