Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
simplify some doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
saliola committed Oct 6, 2019
1 parent 602f6eb commit ce24186
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/sage/matrix/matrix1.pyx
Expand Up @@ -446,8 +446,8 @@ cdef class Matrix(Matrix0):
Entries of the matrix get promoted to the base ring (:trac:`28566`)::
sage: R.<x,y> = 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:
Expand Down
4 changes: 2 additions & 2 deletions src/sage/modules/free_module_element.pyx
Expand Up @@ -3510,8 +3510,8 @@ cdef class FreeModuleElement(Vector): # abstract base class
Entries of the vector get promoted to the base ring::
sage: R.<x,y> = 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:
Expand Down

0 comments on commit ce24186

Please sign in to comment.