##// END OF EJS Templates
py3: fix test-propertycache.py on Windows
Matt Harbison -
r40383:e5d74742 default
parent child Browse files
Show More
@@ -16,6 +16,10 b' from mercurial import ('
16 16 util,
17 17 )
18 18
19 from mercurial.utils import (
20 procutil,
21 )
22
19 23 # create some special property cache that trace they call
20 24
21 25 calllog = []
@@ -46,7 +50,9 b' localrepo.localrepository.testcachedunfi'
46 50 # Create an empty repo and instantiate it. It is important to run
47 51 # these tests on the real object to detect regression.
48 52 repopath = pycompat.fsencode(os.path.join(os.environ['TESTTMP'], 'repo'))
49 assert subprocess.call(['hg', 'init', repopath]) == 0
53 assert subprocess.call(pycompat.rapply(procutil.tonativestr,
54 [b'hg', b'init', repopath])) == 0
55
50 56 ui = uimod.ui.load()
51 57 repo = hg.repository(ui, path=repopath).unfiltered()
52 58
General Comments 0
You need to be logged in to leave comments. Login now