tests/test-filecache.py
changeset 14982 4c01478991a3
parent 14937 0b3e57c1b8c0
child 15057 774da7121fc9
--- 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