On Monday, July 28, 2014 9:42:16 AM UTC-4, Daniel Krenn wrote:
>
> Is there a way to hide a doctest in the documentation, but still keep it 
> in the source, so that it will get tested? 
>

No. It wouldn't be a "doc"test then, would it?
 

> sage: dict = {'a': 'b', 'x': 'y'}  # random 
> {'a': 'b', 'x': 'y'} 
> sage: sorted(dict.iteritems())  # hide doctest 
> [('a', 'b'), ('x', 'y')] 
>


how about

    sage: dict ==  {'a': 'b', 'x': 'y'}
    True

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