On Wed, Nov 16, 2016 at 1:47 PM, Jan Groenewald <j...@aims.ac.za> wrote:
> Hi
>
> On 16 November 2016 at 14:35, Simon King <simon.k...@uni-jena.de> wrote:
>>
>> Hi Franco,
>>
>> On 2016-11-15, Franco Saliola <sali...@gmail.com> wrote:
>> > I'm wondering whether there is a way to run the doctests of a single
>> > function.
>>
>> Would indeed be nice to have. And thank you for pointing out
>> run_doctests() --- I haven't been aware of it.
>
>
> Looks like you could manually do this
>
> https://stackoverflow.com/questions/10080157/python-is-it-possible-to-only-test-specific-functions-with-doctest-in-a-module


Yes, it's certainly doable in principle.  I'm surprised (though I
never tried it) that Sage's doctest runner doesn't provide a
straightforward way to do this.
I would suggest a syntax like ./sage -t <filename>:<function>, where
<function> could also be something like <classname.method>, etc.

-- 
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 https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to