Try installing the new doctesting code at #12415 and running sage -t --debug sage/combinat/tableau_tuple.py It will drop you into an iPython prompt when the error occurs (or a python debugger if there's an unexpected error).
You should be able to skip most of the patches and dependencies, which have to do with making the current Sage library pass tests. Just apply 12415_framework.patch to the library, 12415_script.patch to local/bin 12415_spkg_bin.patch to the root repository. The new doctesting framework still needs some work on KeyboardInterrupt handling, but other than that is basically done. David On Tue, Jul 24, 2012 at 4:02 AM, Andrew Mathas <[email protected]> wrote: > Hi! > > In a patch that I am writing I am getting doctest failures from sage but > when I run the code "by hand" it works. Specifically, inside sage I get see > the following behaviour > > sage: res=ResidueSequence(3,[0,0,1], [0,1,2]); res > Residue sequence (0,1,2) of level 3 > sage: for t in res.standard_tableaux(): > ... print t > [[[1, 2, 3]], [], []] > [[[1, 2], [3]], [], []] > [[[1], [3]], [], [[2]]] > [[[1]], [], [[2, 3]]] > [[], [[1, 2, 3]], []] > [[], [[1, 2], [3]], []] > [[], [[1], [3]], [[2]]] > [[], [[1]], [[2, 3]]] > > whereas when I rebuild sage and run sage -t tableau_tuples.py then I get the > following error: > > File > "/usr/local/src/sage/sage-5.1/devel/sage-combinat/sage/combinat/tableau_tuple.py", > line 3605: > sage: for t in res.standard_tableaux(): > print t > Expected: > [[[1, 2, 3]], [], []] > [[[1, 2], [3]], [], []] > [[[1], [3]], [], [[2]]] > [[[1]], [], [[2, 3]]] > [[], [[1, 2, 3]], []] > [[], [[1, 2], [3]], []] > [[], [[1], [3]], [[2]]] > [[], [[1]], [[2, 3]]] > Got: > [[[1, 2, 3]], [], []] > [[[1, 2], [3]], [], []] > [[], [[1, 2, 3]], []] > [[], [[1, 2], [3]], []] > ********************************************************************** > 1 items had failures: > 1 of 5 in __main__.example_137 > ***Test Failed*** 1 failures. > > Incidentally, the answer returned from in side sage is correct and that > returned by the doctest is wrong. > > To me this looks it might be a bug in the doctest code but I am not > sufficiently confident that it is not something that I am doing. I am > running > > Sage Version 5.1, Release Date: 2012-07-09 > > on a macbook pro running lion. I'd post the code which gives this error > except that I haven't managed to isolate it to a reasonably sized block of > code. > > Andrew > > > -- > -- > 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 > > > -- -- 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
