Hi Jeroen, On 2015-09-14, Jeroen Demeyer <jdeme...@cage.ugent.be> wrote: > On 2015-09-14 10:27, Simon King wrote: >> Thus, MatrixSpace(GF(25,'x'),3)(1) has a different output type > With "output type", do you literally mean > > sage: type(MatrixSpace(GF(25,'x'),3)(1)) > > or do you mean something else? The fact that the type() is different > should not affect doctests that much.
There already is a test in sage.matrix.matrix_space that demonstrates that MatrixSpace chooses a matrix implementation depending on the base ring. Apart from that test, you are right: Differences will only arise when random matrices are involved. Is it possible to make execution of a test depend on the *absence* of a condition? Such as sage: MatrixSpace(GF(25,'x'),3).random_element() # optional: meataxe <some output> sage: MatrixSpace(GF(25,'x'),3).random_element() # optional: not meataxe <some other output> Best regards, Simon -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.