tests/test-doctest.py
author Thomas Arendsen Hein <thomas@intevation.de>
Mon, 11 Dec 2006 14:30:50 +0100
changeset 3868 6033d9f28052
parent 3224 394ac87f3b74
child 4122 306055f5b65c
permissions -rw-r--r--
hgweb.cgi and hgwebdir.cgi fixes/cleanups for user configurable parts: - "import os" was missing in hgwebdir.cgi, added to comments for both script. - HGENCODING has to be set before importing hgweb, otherwise you'll get mixed encoding in changelog vs. file content/diffs. - "import sys" is only needed when changing sys.path - document purpose of cgitb.

#!/usr/bin/env python
#

import doctest

import mercurial.changelog
# test doctest from changelog

doctest.testmod(mercurial.changelog)