On 2009-11-10, Chris Withers wrote: > Hi All,
> The following ReST: > >>> from testfixtures import compare > >>> compare(1, > ... 2) > Traceback (most recent call last): > ... > AssertionError: 1 != 2 > ...is rendered by Sphinx as: > >>> from testfixtures import compare > >>> compare(1, > ... 2) > ... > AssertionError: 1 != 2 > Why is the Traceback line swallowed? It makes it less clear what's > happening... Don't know what exactly happens, it *could* be a bug in Docutils' parsing of a doctest block (did you indent it?). But it should work if you put the example in an indented literal block: All of the following block should show up in the output:: >>> from testfixtures import compare >>> compare(1, ... 2) Traceback (most recent call last): ... AssertionError: 1 != 2 Günter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
