view tests/test-doctest.py @ 12619:7178f6fedb9d

cat: fix cat without -r, broken by 0ae35296fbf4 The default revision for revsingle() is now '.' instead of None. This preserves the behavior of cat prior to it using revsingle().
author Brodie Rao <brodie@bitheap.org>
date Fri, 08 Oct 2010 14:02:23 -0500
parents 0f83a402faa0
children 7cc4263e07a9 5d0a30fad7de
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.match
doctest.testmod(mercurial.match)

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

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