##// END OF EJS Templates
httprepo: make __del__ more stable in error situations...
httprepo: make __del__ more stable in error situations Some errors could leave self.urlopener uninitialized and thus cause strange crashes in __del__. This member variable is now "declared statically" and checked for assignment before use.

File last commit:

r15235:f7044da7 default
r15246:7b15dd91 default
Show More
heredoctest.py
9 lines | 264 B | text/x-python | PythonLexer
Idan Kamara
tests: add helper script for processing doctests read from stdin...
r15235 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)