Lines Matching refs:re
44 import re
103 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\: ', r'\1:#: ', test_output)
110 return re.sub(r'Stack trace:(.|\n)*?\n\n',
118 return re.sub(r'Stack trace:(.|\n)*?\n\n', '', output)
124 return re.sub(r'\(\d+ ms', '(? ms', output)
138 return re.sub(r'unsigned int', 'unsigned', test_output)
144 output = re.sub(r'\d+ tests?, listed below',
146 output = re.sub(r'\d+ FAILED TESTS',
148 output = re.sub(r'\d+ tests? from \d+ test cases?',
150 output = re.sub(r'\d+ tests? from ([a-zA-Z_])',
152 return re.sub(r'\d+ tests?\.', '? tests.', output)
170 test_output = re.sub(
175 return re.sub(r'.*%s.*\n' % pattern, '', test_output)