Doctesting works from the source code, not by inspecting the evaluated 
module. The easiest way to deal with your function factory would be to put 
the tests in make_a_function.


On Tuesday, July 29, 2014 6:18:42 AM UTC-4, Nathann Cohen wrote:
>
> Hello everybody !
>
> In order to simplify some code in combinat/designs/ (which contains a lot 
> of functions) I created a meta-function which can generate some of them.
>
> def make_a_function(x):
>     def new_function():
>         return x
> my_function = make_a_function(3)
>
> The functions returned (like my_function) have a complete documentation 
> and doctests and appear correctly in the html doc, but they are *not* 
> tested during "sage -t".
>
> Is there a way to force the doctest framework to deal with them ?
>
> THaaaaaaaaaaaaaanks !!!
>
> Nathann
>

-- 
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