[IPython-dev] All tests pass on windows!

Thomas Kluyver takowl@gmail....
Tue Jun 12 12:48:01 CDT 2012


On 12 June 2012 18:39, Jörgen Stenarson <jorgen.stenarson@kroywen.se> wrote:
> One of the failures is a doctest that looks for a u"..." string. What is
> the recommended way to write robust doctests that work on 3.2?

If possible, the recommended way is to write regular tests, because
doctests are regularly a headache. For things that do need doctests
with unicode strings in, write the example like '{u}"thestring" ', and
wrap it in py3compat.u_format() - or apply u_format as a decorator to
change a function's docstring.

Thanks,
Thomas


More information about the IPython-dev mailing list