changeset 4849 | 035489f60842 |
parent 4818 | 616a5adbf402 |
child 4857 | 2192001e4bb4 |
4848:5e365008360f | 4849:035489f60842 |
---|---|
832 |
832 |
833 def debuginstall(ui): |
833 def debuginstall(ui): |
834 '''test Mercurial installation''' |
834 '''test Mercurial installation''' |
835 |
835 |
836 def writetemp(contents): |
836 def writetemp(contents): |
837 (fd, name) = tempfile.mkstemp() |
837 (fd, name) = tempfile.mkstemp(prefix="hg-debuginstall-") |
838 f = os.fdopen(fd, "wb") |
838 f = os.fdopen(fd, "wb") |
839 f.write(contents) |
839 f.write(contents) |
840 f.close() |
840 f.close() |
841 return name |
841 return name |
842 |
842 |