tests/run-tests.py
branchstable
changeset 844 e5e1c16fe5b7
parent 834 5a6898736b1a
child 852 fb1e8925292d
equal deleted inserted replaced
843:55e4ea6d1c01 844:e5e1c16fe5b7
   544             if pos in expected and expected[pos]:
   544             if pos in expected and expected[pos]:
   545                 el = expected[pos].pop(0)
   545                 el = expected[pos].pop(0)
   546 
   546 
   547             if el == l: # perfect match (fast)
   547             if el == l: # perfect match (fast)
   548                 postout.append("  " + l)
   548                 postout.append("  " + l)
       
   549             elif el and el.decode('string-escape') == l:
       
   550                 postout.append("  " + el)  # \-escape match
   549             elif (el and
   551             elif (el and
   550                   (el.endswith(" (re)\n") and rematch(el[:-6] + '\n', l) or
   552                   (el.endswith(" (re)\n") and rematch(el[:-6] + '\n', l) or
   551                    el.endswith(" (glob)\n") and globmatch(el[:-8] + '\n', l))):
   553                    el.endswith(" (glob)\n") and globmatch(el[:-8] + '\n', l))):
   552                 postout.append("  " + el) # fallback regex/glob match
   554                 postout.append("  " + el) # fallback regex/glob match
   553             else:
   555             else: