# HG changeset patch # User Lee Cantey # Date 1311809881 -10800 # Node ID 4c01478991a3d36833f365da7a79c30917ff887d # Parent d78b92353f2693f206d350895ac73f1577e79f1c test-filecache: change for python 2.4 compatibility diff -r d78b92353f26 -r 4c01478991a3 tests/test-filecache.py --- a/tests/test-filecache.py Tue Jul 26 21:30:12 2011 +0200 +++ b/tests/test-filecache.py Thu Jul 28 02:38:01 2011 +0300 @@ -1,8 +1,6 @@ import sys, os, subprocess -try: - subprocess.check_call(['%s/hghave' % os.environ['TESTDIR'], 'cacheable']) -except subprocess.CalledProcessError: +if subprocess.call(['%s/hghave' % os.environ['TESTDIR'], 'cacheable']): sys.exit(80) from mercurial import util, scmutil, extensions