comparison 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
comparison
equal deleted inserted replaced
7074:b1a4f67b98d0 7078:967adcf5910d
1 # this is hack to make sure no escape characters are inserted into the output 1 # this is hack to make sure no escape characters are inserted into the output
2 import os; del os.environ['TERM'] 2 import os;
3 if 'TERM' in os.environ:
4 del os.environ['TERM']
3 import doctest 5 import doctest
4 6
5 import mercurial.changelog 7 import mercurial.changelog
6 # test doctest from changelog 8 # test doctest from changelog
7 9