On 1/17/2014 7:14 AM, Robin Becker wrote:
I tried this approach with a few more complicated outcomes and they fail in python2 or 3 depending on how I try to render the result in the doctest.
I never got how you are using doctests. There were certainly not meant for heavy-duty unit testing, but for testing combined with explanation. Section 26.2.3.7. (in 3.3) Warnings warns that they are fragile to even single char changes and suggests == as a workaround, as 'True' and 'False' will not change. So I would not reject that option.
-- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list