[PATCH] py3: fix test-propertycache.py on Windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] py3: fix test-propertycache.py on Windows

Matt Harbison-2
# HG changeset patch
# User Matt Harbison <[hidden email]>
# Date 1538099653 14400
#      Thu Sep 27 21:54:13 2018 -0400
# Node ID 7b9cf4dddf95b5964d3a05f65b9609b751f4334a
# Parent  b08be5625c0094a2fdd6cc00bec2a4dcdcc9ea75
py3: fix test-propertycache.py on Windows

diff --git a/tests/test-propertycache.py b/tests/test-propertycache.py
--- a/tests/test-propertycache.py
+++ b/tests/test-propertycache.py
@@ -16,6 +16,10 @@ from mercurial import (
     util,
 )
 
+from mercurial.utils import (
+    procutil,
+)
+
 # create some special property cache that trace they call
 
 calllog = []
@@ -46,7 +50,9 @@ localrepo.localrepository.testcachedunfi
 # Create an empty repo and instantiate it. It is important to run
 # these tests on the real object to detect regression.
 repopath = pycompat.fsencode(os.path.join(os.environ['TESTTMP'], 'repo'))
-assert subprocess.call(['hg', 'init', repopath]) == 0
+assert subprocess.call(pycompat.rapply(procutil.tonativestr,
+                                       [b'hg', b'init', repopath])) == 0
+
 ui = uimod.ui.load()
 repo = hg.repository(ui, path=repopath).unfiltered()
 
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] py3: fix test-propertycache.py on Windows

Yuya Nishihara
On Wed, 17 Oct 2018 23:56:38 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <[hidden email]>
> # Date 1538099653 14400
> #      Thu Sep 27 21:54:13 2018 -0400
> # Node ID 7b9cf4dddf95b5964d3a05f65b9609b751f4334a
> # Parent  b08be5625c0094a2fdd6cc00bec2a4dcdcc9ea75
> py3: fix test-propertycache.py on Windows

Queued, thanks.
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel