diff -r a02b1025536c -r 943253aadddb tests/heredoctest.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/heredoctest.py Wed Oct 12 22:01:13 2011 +0200 @@ -0,0 +1,9 @@ +import doctest, tempfile, os, sys + +if __name__ == "__main__": + fd, name = tempfile.mkstemp(suffix='hg-tst') + os.write(fd, sys.stdin.read()) + os.close(fd) + failures, _ = doctest.testfile(name, module_relative=False) + if failures: + sys.exit(1)