D5101: py3: fix test-propertycache.py
mbthomas (Mark Thomas)
phabricator at mercurial-scm.org
Sun Oct 14 11:27:09 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd33611280add: py3: fix test-propertycache.py (authored by mbthomas, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5101?vs=12137&id=12148
REVISION DETAIL
https://phab.mercurial-scm.org/D5101
AFFECTED FILES
tests/test-propertycache.py
CHANGE DETAILS
diff --git a/tests/test-propertycache.py b/tests/test-propertycache.py
--- a/tests/test-propertycache.py
+++ b/tests/test-propertycache.py
@@ -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()
To: mbthomas, #hg-reviewers
Cc: durin42, mercurial-devel
More information about the Mercurial-devel
mailing list