Mercurial > hg
view tests/heredoctest.py @ 15265:460135339d74
revert: warn that subrepos cannot be reverted
(tests added by mpm)
author | Angel Ezquerra <angel.ezquerra@gmail.com> |
---|---|
date | Sat, 15 Oct 2011 01:06:52 +0200 |
parents | 3cd1605e9d8e |
children | 474279be5add |
line wrap: on
line source
import doctest, tempfile, os, sys if __name__ == "__main__": fd, name = tempfile.mkstemp(suffix='hg-tst') try: os.write(fd, sys.stdin.read()) os.close(fd) failures, _ = doctest.testfile(name, module_relative=False) if failures: sys.exit(1) finally: os.remove(name)