Re: [sage-devel] Doc-testing ouptut with dots

2016-07-11 Thread Kwankyu Lee
> > But one's interface shouldn't be dictated by what the doctester can > and can't do. I agree. > Does anyone know if there's a reason the standard > doctest flags (like #doctest: -ELLIPSES) don't work properly in Sage's > tests? > I investigated this. The doctest options(flags) is

Re: [sage-devel] Doc-testing ouptut with dots

2016-07-11 Thread Erik Bray
On Mon, Jul 11, 2016 at 1:21 PM, Andrew wrote: > Thanks David and Erik for your replies. I could not disable the doct-tests > so I have changed my output to: > > sage: print(CartanType(['A', oo]).ascii_art()) > ..---O---O---O---O---O---O---O---.. > -3 -2 -1 0 1

Re: [sage-devel] Doc-testing ouptut with dots

2016-07-11 Thread Andrew
Thanks David and Erik for your replies. I could not disable the doct-tests so I have changed my output to: sage: print(CartanType(['A', oo]).ascii_art()) ..---O---O---O---O---O---O---O---.. -3 -2 -1 0 1 2 3 which I think is good enough. Andrew On Friday, 8 July 2016 10:34:31

Re: [sage-devel] Doc-testing ouptut with dots

2016-07-08 Thread Erik Bray
On Thu, Jul 7, 2016 at 1:13 PM, Andrew 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

Re: [sage-devel] Doc-testing ouptut with dots

2016-07-07 Thread David Roe
On Jul 7, 2016 07:13, "Andrew" 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 >

[sage-devel] Doc-testing ouptut with dots

2016-07-07 Thread Andrew
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 but sage complains with: ValueError: line 6 of the docstring for