[issue10087] HTML calendar is broken

Alexander Belopolsky report at bugs.python.org
Mon Nov 22 18:14:34 CET 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

On Mon, Nov 22, 2010 at 11:55 AM, Chris Lambacher
<report at 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.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10087>
_______________________________________


More information about the Python-bugs-list mailing list