(lines)
| 1051 | |
| 1052 | @staticmethod |
| 1053 | def transformer(lines): |
| 1054 | for line in lines: |
| 1055 | pos = line.find("syntaxerror") |
| 1056 | if pos >= 0: |
| 1057 | e = SyntaxError('input contains "syntaxerror"') |
| 1058 | e.text = line |
| 1059 | e.offset = pos + 1 |
| 1060 | raise e |
| 1061 | return lines |
| 1062 | |
| 1063 | def setUp(self): |
| 1064 | ip.input_transformers_post.append(self.transformer) |