Hi Nathann, On 2015-09-14, Nathann Cohen <nathann.co...@gmail.com> wrote: > No. You have to understand that the optional doctests are > "declarative". You can run "sage -t --optional=a_package" even if you > don't have "a_package" installed. Similarly, you are not forced to > mention all packages that are installed. > > For a doctest such like yours to work, we would need something like > "sage -t --optional=<I_swear_that_I_dont_have_X>" or something. > > The "new" behaviour of automatically testing all optional packages > when you don't specify any is merely "a shortcut".
Why would you need that? If you have sage: foo() # optional: bar 1 sage: foo() # optional: no bar 2 then "sage -t --optional=bar" would expect the output 1, and when you run "sage -t" then it would expect the output 2. And since (if I understand correctly) the doctest framework now uses --optional="all installed optional packages" by default, this would be rather useful in my situation. I just don't know if "optional: no bar" is an implemented feature of the doctester. 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.