view tests/test-doctest.py @ 7078:967adcf5910d

test-doctest: remove TERM env variable only if it's there
author Patrick Mezard <pmezard@gmail.com>
date Sat, 11 Oct 2008 16:40:59 +0200
parents b856071435f7
children d4218edd55bd 380fda3eed13
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
# test doctest from changelog

doctest.testmod(mercurial.changelog)

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

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