view test.py @ 505:228acb1c7088 default tip

remove info line from the pages
author sheep@ghostwheel
date Sat, 08 Nov 2008 20:51:01 +0100
parents 9cc7631bb2cb
children
line wrap: on
line source

#!/usr/bin/python
# -*- coding: utf-8 -*-

import gettext
import doctest
import sys

def displayhook(value):
    """Prevent using _ as it conflicts with gettext"""
    if value is not None:
        print repr(value)

sys.displayhook = displayhook
gettext.install("Dandelion")
if __name__ == "__main__":
    import dandelion.wiki
    doctest.testmod(dandelion.wiki)
    import dandelion.viewer
    doctest.testmod(dandelion.viewer)
    import dandelion.wikiparser
    doctest.testmod(dandelion.wikiparser)