view tests/test-doctest.py @ 12594:bb324910e40a stable

test-doctest: test the modules that contains doctests
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 01 Oct 2010 00:48:51 +0200
parents 0f3c8a47960e
children 0f83a402faa0
line wrap: on
line source

# 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)