Hi!

On 2015-09-12, Jeroen Demeyer <jdeme...@cage.ugent.be> wrote:
> On 2015-09-12 23:36, Volker Braun wrote:
>> See the usage of OptionalExtension in src/module_list.py

I now have a module sage.matrix.matrix_modpn_dense that is available if
the optional package "meataxe" is installed. I modified
sage.matrix.matrix_space so that the module is used if it was built.

Thus, MatrixSpace(GF(25,'x'),3)(1) has a different output type,
depending on whether or not some optional package is installed, and
the random matrices will be different even if the random seed is the
same.

That gives rise to the next question: How can I modify the doctests such
that they pass regardless whether the optional package is installed or
not? I.e., can I make the expected result depend on an optional package?

Or even better: Can I make the documentation of a Python module
such as sage.matrix.matrix_space depend on an optional package?

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.

Reply via email to