view tests/test-doctest.py @ 13131:c9ae7e096994

progress: Add estimated time remaining for long tasks Output looks roughly like this: updating [======================> ] 1547/4842 0m13s output will either show h:m or m:s
author timeless <timeless@gmail.com>
date Tue, 26 Oct 2010 14:41:58 +0300
parents 7cc4263e07a9
children b549ee324aef
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.encoding
doctest.testmod(mercurial.encoding)

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