Lines Matching refs:re
44 import re
102 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\: ', r'\1:#: ', test_output)
109 return re.sub(r'Stack trace:(.|\n)*?\n\n',
117 return re.sub(r'Stack trace:(.|\n)*?\n\n', '', output)
123 return re.sub(r'\(\d+ ms', '(? ms', output)
129 output = re.sub(r'\d+ tests, listed below',
131 output = re.sub(r'\d+ FAILED TESTS',
133 output = re.sub(r'\d+ tests from \d+ test cases',
135 output = re.sub(r'\d+ tests from ([a-zA-Z_])',
137 return re.sub(r'\d+ tests\.', '? tests.', output)
155 test_output = re.sub(
160 return re.sub(r'.*%s.*\n' % pattern, '', test_output)