##// END OF EJS Templates
largefiles: use XDG and OS X-specific cache locations by default (issue3067)
largefiles: use XDG and OS X-specific cache locations by default (issue3067)

File last commit:

r15247:3cd1605e default
r15320:681267a5 stable
Show More
heredoctest.py
13 lines | 331 B | text/x-python | PythonLexer
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)