comparison tests/run-tests.py @ 12338:b016fc1c0862

tests: add hack to avoid problem with graphlog in unified tests
author Matt Mackall <mpm@selenic.com>
date Mon, 20 Sep 2010 14:36:36 -0500
parents 4134686b83e1
children 58885f00b998
comparison
equal deleted inserted replaced
12337:6a6149487817 12338:b016fc1c0862
501 finally: 501 finally:
502 os.remove(name) 502 os.remove(name)
503 503
504 def rematch(el, l): 504 def rematch(el, l):
505 try: 505 try:
506 # hack to deal with graphlog, which looks like bogus regexes
507 if el.startswith('|'):
508 el = '\\' + el
506 return re.match(el, l) 509 return re.match(el, l)
507 except re.error: 510 except re.error:
508 # el is an invalid regex 511 # el is an invalid regex
509 return False 512 return False
510 513