tests/test-doctest.py
author Mads Kiilerich <mads@kiilerich.com>
Fri, 01 Oct 2010 00:48:51 +0200
branchstable
changeset 12594 bb324910e40a
parent 11337 0f3c8a47960e
child 12595 0f83a402faa0
permissions -rw-r--r--
test-doctest: test the modules that contains doctests

# this is hack to make sure no escape characters are inserted into the output
import os
if 'TERM' in os.environ:
    del os.environ['TERM']
import doctest

import mercurial.changelog
doctest.testmod(mercurial.changelog)

import mercurial.dagparser
doctest.testmod(mercurial.dagparser, optionflags=doctest.NORMALIZE_WHITESPACE)

import mercurial.url
doctest.testmod(mercurial.url)

import hgext.convert.cvsps
doctest.testmod(hgext.convert.cvsps)