tests/heredoctest.py
branchstable
changeset 1109 8458561f6f94
parent 1108 168da136346a
child 1110 d5b3404b82ce
equal deleted inserted replaced
1108:168da136346a 1109:8458561f6f94
     1 import doctest, tempfile, os, sys
     1 import doctest, tempfile, os, sys
     2 
     2 
     3 if __name__ == "__main__":
     3 if __name__ == "__main__":
       
     4     if 'TERM' in os.environ:
       
     5         del os.environ['TERM']
       
     6 
     4     fd, name = tempfile.mkstemp(suffix='hg-tst')
     7     fd, name = tempfile.mkstemp(suffix='hg-tst')
     5 
     8 
     6     try:
     9     try:
     7         os.write(fd, sys.stdin.read())
    10         os.write(fd, sys.stdin.read())
     8         os.close(fd)
    11         os.close(fd)