changeset 19878:21de61bc2ab5 stable

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.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 02 Oct 2013 11:16:03 +0200
parents 52ed85d9ac26
children 5cbf413ce658
files tests/test-propertycache.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-propertycache.py	Tue Oct 01 09:54:46 2013 +0200
+++ b/tests/test-propertycache.py	Wed Oct 02 11:16:03 2013 +0200
@@ -42,7 +42,7 @@
 # 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()