Hi Jason !
> The patch is already done and waiting on trac for several months:
>
> http://trac.sagemath.org/sage_trac/ticket/1918
Excellent !
> You just have to update a bunch of doctests and review the patch!
I was ready to do that, unfortunately, that not the problem here. There seems
to be some interference with the doctest mechanism:
If you take a random test file, you'll see that the answer that is expected by
sage is printed on the screen before sage reports the error and that sage
reports that he get nothing. So it seems that the result of the patch is that
the doctest mechanism is bypassed and that the output goes directly to the
screen. I'll investigate this but I don't know anything neither about sage
output
mechanism not on sage doctest mechanism. So if anyone have a idea, please
help.
Cheers,
Florent
sage -t "devel/sage-combinat/sage/combinat/subword.py"
Subwords of ['a', 'b', 'c']
**********************************************************************
File "/usr/local/sage/sage-4.2/devel/sage-combinat/sage/combinat/subword.py",
line 66:
sage: S = Subwords(['a','b','c']); S
Expected:
Subwords of ['a', 'b', 'c']
Got nothing
[]
**********************************************************************
File "/usr/local/sage/sage-4.2/devel/sage-combinat/sage/combinat/subword.py",
line 68:
sage: S.first()
Expected:
[]
Got nothing
['a', 'b', 'c']
**********************************************************************
File "/usr/local/sage/sage-4.2/devel/sage-combinat/sage/combinat/subword.py",
line 70:
sage: S.last()
Expected:
['a', 'b', 'c']
Got nothing
[[], ['a'], ['b'], ['c'], ['a', 'b'], ['a', 'c'], ['b', 'c'], ['a', 'b', 'c']]
**********************************************************************
File "/usr/local/sage/sage-4.2/devel/sage-combinat/sage/combinat/subword.py",
line 72:
sage: S.list()
Expected:
[[], ['a'], ['b'], ['c'], ['a', 'b'], ['a', 'c'], ['b', 'c'], ['a', 'b',
'c']]
Got nothing
Subwords of ['a', 'b', 'c'] of length 2
**********************************************************************
File "/usr/local/sage/sage-4.2/devel/sage-combinat/sage/combinat/subword.py",
line 77:
sage: S = Subwords(['a','b','c'], 2); S
Expected:
Subwords of ['a', 'b', 'c'] of length 2
Got nothing
[['a', 'b'], ['a', 'c'], ['b', 'c']]
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org