def test_nocaret(self):
        if is_jython:
            # jython adds a caret in this case (why shouldn't it?)
            return
        err = self.get_exception_format(self.syntax_error_without_caret,
                                        SyntaxError)
        self.assert_(len(err) == 3)
        self.assert_(err[1].strip() == "[x for x in x] = x")
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_traceback.py/TracebackCases.test_nocaret/original