changeset 14982:4c01478991a3

test-filecache: change for python 2.4 compatibility
author Lee Cantey <lcantey@gmail.com>
date Thu, 28 Jul 2011 02:38:01 +0300
parents d78b92353f26
children 6312171468f7
files tests/test-filecache.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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