test-filecache: change for python 2.4 compatibility
authorLee Cantey <lcantey@gmail.com>
Thu, 28 Jul 2011 02:38:01 +0300
changeset 14982 4c01478991a3
parent 14940 d78b92353f26
child 14983 6312171468f7
test-filecache: change for python 2.4 compatibility
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