##// END OF EJS Templates
run-tests: python3.5 now supports mkdtemp using bytes for paths...
Augie Fackler -
r25262:5a809deb default
parent child Browse files
Show More
@@ -1747,9 +1747,7 class TestRunner(object):
1747 # without this, we get the default temp dir location, but
1747 # without this, we get the default temp dir location, but
1748 # in all lowercase, which causes troubles with paths (issue3490)
1748 # in all lowercase, which causes troubles with paths (issue3490)
1749 d = osenvironb.get(b'TMP', None)
1749 d = osenvironb.get(b'TMP', None)
1750 # FILE BUG: mkdtemp works only on unicode in Python 3
1750 tmpdir = tempfile.mkdtemp(b'', b'hgtests.', d)
1751 tmpdir = tempfile.mkdtemp('', 'hgtests.', d and _strpath(d))
1752 tmpdir = _bytespath(tmpdir)
1753
1751
1754 self._hgtmp = osenvironb[b'HGTMP'] = (
1752 self._hgtmp = osenvironb[b'HGTMP'] = (
1755 os.path.realpath(tmpdir))
1753 os.path.realpath(tmpdir))
General Comments 0
You need to be logged in to leave comments. Login now