On Jul 7, 2016 07:13, "Andrew" <andrew.mat...@gmail.com> wrote:
>
> Hi!
>
> How do you doc-test output that starts with ...? The particular output
that I want to test is:
>
> sage: print(CartanType(['A', oo]).ascii_art())
> ...---O---O---O---O---O---O---O---...
>      -3  -2  -1   0   1   2   3
>

You could do
sage: print(CartanType(['A',oo]).ascii_art().replace('...','***')

I don't know of a way to directly check your original output.
> but sage complains with:
>
>
> ValueError: line 6 of the docstring for
sage.combinat.root_system.type_A_infinity.CartanType.i lacks blank after
...: '    ...---O---O---O---O---O---O---O---...'
>
> Clearly, sphinx is getting confused because ... normally indicates code
continuation. Is it possible to work around or disable this or do I need to
change my output?
>
> Andrew
>
> --
> 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.

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