tests/run-tests.py
changeset 25262 5a809deb88e6
parent 25261 27600986a0d9
child 25290 8f88f768e24c
--- a/tests/run-tests.py	Fri May 22 21:15:52 2015 -0400
+++ b/tests/run-tests.py	Fri May 22 21:19:08 2015 -0400
@@ -1747,9 +1747,7 @@
                 # without this, we get the default temp dir location, but
                 # in all lowercase, which causes troubles with paths (issue3490)
                 d = osenvironb.get(b'TMP', None)
-            # FILE BUG: mkdtemp works only on unicode in Python 3
-            tmpdir = tempfile.mkdtemp('', 'hgtests.', d and _strpath(d))
-            tmpdir = _bytespath(tmpdir)
+            tmpdir = tempfile.mkdtemp(b'', b'hgtests.', d)
 
         self._hgtmp = osenvironb[b'HGTMP'] = (
             os.path.realpath(tmpdir))