Mercurial > hg-stable
changeset 40347:e5d74742d00e
py3: fix test-propertycache.py on Windows
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 27 Sep 2018 21:54:13 -0400 |
parents | 943248e47864 |
children | 124507a263e5 |
files | tests/test-propertycache.py |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-propertycache.py Wed Oct 17 21:00:36 2018 +0800 +++ b/tests/test-propertycache.py Thu Sep 27 21:54:13 2018 -0400 @@ -16,6 +16,10 @@ util, ) +from mercurial.utils import ( + procutil, +) + # create some special property cache that trace they call calllog = [] @@ -46,7 +50,9 @@ # 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()