Mercurial > hg-stable
changeset 40297:d33611280add
py3: fix test-propertycache.py
Differential Revision: https://phab.mercurial-scm.org/D5101
author | Mark Thomas <mbthomas@fb.com> |
---|---|
date | Sun, 14 Oct 2018 14:10:38 +0000 |
parents | e787d97e90ad |
children | 9cadb0f5f227 |
files | tests/test-propertycache.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-propertycache.py Sun Oct 14 14:02:32 2018 +0000 +++ b/tests/test-propertycache.py Sun Oct 14 14:10:38 2018 +0000 @@ -11,6 +11,7 @@ from mercurial import ( hg, localrepo, + pycompat, ui as uimod, util, ) @@ -44,7 +45,7 @@ # Create an empty repo and instantiate it. It is important to run # these tests on the real object to detect regression. -repopath = os.path.join(os.environ['TESTTMP'], 'repo') +repopath = pycompat.fsencode(os.path.join(os.environ['TESTTMP'], 'repo')) assert subprocess.call(['hg', 'init', repopath]) == 0 ui = uimod.ui.load() repo = hg.repository(ui, path=repopath).unfiltered()