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 belopolsky
Recipients belopolsky, doerwalter, eric.araujo, ezio.melotti, georg.brandl, gpolo, lambacck, rhettinger, vstinner
Date 2010-11-22.17:14:33
SpamBayes Score 1.1902235e-06
Marked as misclassified No
Message-id <AANLkTinxBzC8wrp3P-sWxSw0XgEt6XNEN_2K4B0o3ia2@mail.gmail.com>
In-reply-to <1290444945.23.0.663068521515.issue10087@psf.upfronthosting.co.za>
Content
On Mon, Nov 22, 2010 at 11:55 AM, Chris Lambacher
<report@bugs.python.org> wrote:
..
> 1. Any suggestions about how to test the output of the console program (the case that this bug affects)
> would be appreciated.

For month displays, a doctest may be most appropriate. See
Lib/test/test_syntax.py for one example of using doctests in regrtest
suite.  Note that sys.stdout being StringIO may present a challenge to
your approach.  You can also take a look at test_pydoc which also
tests console-oriented text and html output.
History
Date User Action Args
2010-11-22 17:14:34belopolskysetrecipients: + belopolsky, doerwalter, georg.brandl, rhettinger, vstinner, gpolo, ezio.melotti, eric.araujo, lambacck
2010-11-22 17:14:33belopolskylinkissue10087 messages
2010-11-22 17:14:33belopolskycreate