test-filecache: change for python 2.4 compatibility

This commit is contained in:
Lee Cantey 2011-07-28 02:38:01 +03:00
parent 50825774f7
commit 974aa0a16d

View File

@ -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