Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveWitteMorris committed Feb 12, 2025
1 parent f2dd36f commit 0bdb8e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sage/matrix/args.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,12 @@ cdef class MatrixArgs:
Test invalid input::
sage: MatrixArgs(ZZ, 2, 2, entries='abcd').finalized()
<MatrixArgs for Full MatrixSpace of 2 by 2 dense matrices
over Integer Ring; typ=SCALAR; entries='abcd'>
sage: matrix(ZZ, 2, 2, entries='abcd')
Traceback (most recent call last):
...
TypeError: unable to convert 'abcd' to a matrix
TypeError: unable to convert 'abcd' to an integer
sage: MatrixArgs(ZZ, 2, 2, entries=MatrixArgs()).finalized()
Traceback (most recent call last):
...
Expand Down

0 comments on commit 0bdb8e2

Please sign in to comment.