On Wed, Dec 30, 2009 at 6:38 PM, Martijn Faassen <[email protected]> wrote: > zope.testing.doctestunit emits a deprecation warning. It also defines a > function pprint. How does one use pprint without getting a deprecation > warning? It seems impossible now, and an equivalent pprint doesn't > appear to be in the standard library doctest..
When I recently converted some tests, I replaced that pprint function with the one from the standard library: from pprint import pprint There weren't any differences in the output, as far as I could tell. Hanno _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
