Re: zope.testing.doctestunit pprint and deprecation warnings

Hanno Schlichting <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
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 )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.