This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients docs@python, vstinner, yselivanov
Date 2015-09-14.07:02:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442214127.49.0.0330500431217.issue25105@psf.upfronthosting.co.za>
In-reply-to
Content
It looks like a bug in the "suspicious" tool which should skip preformatted blocks (blocks starting with "::").


+don't provide any options to redirect it::

+

+    >>> import contextlib, io, logging

+    >>> f = io.StringIO()

+    >>> with contextlib.redirect_stderr(f):

+    ...     logging.warning('warning')

+    ...

+    >>> f.getvalue()

+    'WARNING:root:warning\n'

+

+(Contributed by Berker Peksag in :issue:`22389`.)
History
Date User Action Args
2015-09-14 07:02:07vstinnersetrecipients: + vstinner, docs@python, yselivanov
2015-09-14 07:02:07vstinnersetmessageid: <1442214127.49.0.0330500431217.issue25105@psf.upfronthosting.co.za>
2015-09-14 07:02:07vstinnerlinkissue25105 messages
2015-09-14 07:02:07vstinnercreate