tests/test-doctest.py
author Patrick Mezard <pmezard@gmail.com>
Sat, 11 Oct 2008 16:40:59 +0200
changeset 7078 967adcf5910d
parent 7041 b856071435f7
child 7097 d4218edd55bd
child 7184 380fda3eed13
permissions -rw-r--r--
test-doctest: remove TERM env variable only if it's there

# 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
# test doctest from changelog

doctest.testmod(mercurial.changelog)

import mercurial.httprepo
doctest.testmod(mercurial.httprepo)

import mercurial.util
doctest.testmod(mercurial.util)