mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
test: make test-propertycache.py python2.4 compatible
The subprocess module have not `check_call` method in python2.4. Fall back to calling `check` with return code verification.
This commit is contained in:
parent
4e97756fe4
commit
bcf260ff40
@ -42,7 +42,7 @@ mercurial.localrepo.localrepository.testcachedunfifoobar = testcachedunfifoobar
|
||||
# create an empty repo. and instanciate it. It is important to run
|
||||
# those test on the real object to detect regression.
|
||||
repopath = os.path.join(os.environ['TESTTMP'], 'repo')
|
||||
subprocess.check_call(['hg', 'init', repopath])
|
||||
assert subprocess.call(['hg', 'init', repopath]) == 0
|
||||
ui = uimod.ui()
|
||||
repo = mercurial.hg.repository(ui, path=repopath).unfiltered()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user