##// END OF EJS Templates
tests: add helper script for processing doctests read from stdin...
Idan Kamara -
r15235:f7044da7 default
parent child Browse files
Show More
@@ -0,0 +1,9 b''
1 import doctest, tempfile, os, sys
2
3 if __name__ == "__main__":
4 fd, name = tempfile.mkstemp(suffix='hg-tst')
5 os.write(fd, sys.stdin.read())
6 os.close(fd)
7 failures, _ = doctest.testfile(name, module_relative=False)
8 if failures:
9 sys.exit(1)
General Comments 0
You need to be logged in to leave comments. Login now