def test_syntaxError(self):
        err = StringIO()
        reporter = Reporter(None, err)
        reporter.syntaxError('foo.py', 'a problem', 3, 4, 'bad line of source')
        self.assertEqual(
            ("foo.py:3: a problem\n"
             "bad line of source\n"
             "     ^\n"),
            err.getvalue())
C{syntaxError} reports that there was a syntax error in the source
dataset/ETHPy150Open patrys/PythonChecker/pyflakes/test/test_api.py/TestReporter.test_syntaxError