# HG changeset patch # User Bryan O'Sullivan # Date 2012-05-11 09:32:26 # Node ID e22d6b1dec1d4bda684a8d90e8d4852500d69495 # Parent bc84a1aeaf5aff28d4540444c36dc649dd54fd52 tests: fix test-parseindex2.py when run with --pure diff --git a/tests/test-parseindex2.py b/tests/test-parseindex2.py --- a/tests/test-parseindex2.py +++ b/tests/test-parseindex2.py @@ -114,8 +114,12 @@ def runtest() : for i, r in enumerate(ix): if r[7] == nullid: i = -1 - if ix[r[7]] != i: - print 'Reverse lookup inconsistent for %r' % r[7].encode('hex') + try: + if ix[r[7]] != i: + print 'Reverse lookup inconsistent for %r' % r[7].encode('hex') + except TypeError: + # pure version doesn't support this + break print "done"