comparison tests/test-filecache.py @ 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 0b3e57c1b8c0
children 774da7121fc9
comparison
equal deleted inserted replaced
14940:d78b92353f26 14982:4c01478991a3
1 import sys, os, subprocess 1 import sys, os, subprocess
2 2
3 try: 3 if subprocess.call(['%s/hghave' % os.environ['TESTDIR'], 'cacheable']):
4 subprocess.check_call(['%s/hghave' % os.environ['TESTDIR'], 'cacheable'])
5 except subprocess.CalledProcessError:
6 sys.exit(80) 4 sys.exit(80)
7 5
8 from mercurial import util, scmutil, extensions 6 from mercurial import util, scmutil, extensions
9 7
10 filecache = scmutil.filecache 8 filecache = scmutil.filecache