Home | History | Annotate | Download | only in test

Lines Matching defs:re

44 import re
101 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\: ', r'\1:#: ', test_output)
108 return re.sub(r'Stack trace:(.|\n)*?\n\n',
116 return re.sub(r'Stack trace:(.|\n)*?\n\n', '', output)
122 return re.sub(r'\(\d+ ms', '(? ms', output)
136 return re.sub(r'unsigned int', 'unsigned', test_output)
144 test_output = re.sub('\x1b\\[(0;3\d)?m', '', test_output)
146 test_output = re.sub(r': Failure\n', r': error: ', test_output)
148 test_output = re.sub(r'((\w|\.)+)\((\d+)\):', r'\1:\3:', test_output)
156 output = re.sub(r'\d+ tests?, listed below',
158 output = re.sub(r'\d+ FAILED TESTS',
160 output = re.sub(r'\d+ tests? from \d+ test cases?',
162 output = re.sub(r'\d+ tests? from ([a-zA-Z_])',
164 return re.sub(r'\d+ tests?\.', '? tests.', output)
182 test_output = re.sub(
187 return re.sub(r'.*%s.*\n' % pattern, '', test_output)