hghave: byteify a path passed to a core API
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 28 Feb 2023 11:41:50 -0500
changeset 50212 a7cbb626ec3f
parent 50209 af9d050f2bb8
child 50213 57133107ab4d
hghave: byteify a path passed to a core API It looks like this predicate isn't used at all(?)
tests/hghave.py
--- a/tests/hghave.py	Mon Feb 27 18:24:29 2023 +0000
+++ b/tests/hghave.py	Tue Feb 28 11:41:50 2023 -0500
@@ -333,7 +333,7 @@
     fd, path = tempfile.mkstemp(dir='.', prefix=tempprefix)
     os.close(fd)
     try:
-        return util.cachestat(path).cacheable()
+        return util.cachestat(_sys2bytes(path)).cacheable()
     finally:
         os.remove(path)