changeset 50212:a7cbb626ec3f

hghave: byteify a path passed to a core API It looks like this predicate isn't used at all(?)
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 28 Feb 2023 11:41:50 -0500
parents af9d050f2bb8
children 57133107ab4d
files tests/hghave.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)