[Zope-dev] zope.testing.doctestunit pprint and deprecation warnings

Hanno Schlichting hanno at hannosch.eu
Wed Dec 30 12:45:11 EST 2009


On Wed, Dec 30, 2009 at 6:38 PM, Martijn Faassen <faassen at startifact.com> 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


More information about the Zope-Dev mailing list