def METHOD_NAME(self):
    ### Bug tickler: SyntaxError file name correct whether error raised
    ### while parsing or building symbol table.
    def checkfilename(brokencode):
        try:
            symtable.symtable(brokencode, "spam", "exec")
        except SyntaxError as e:
            self.assertEqual(e.filename, "spam")
        else:
            self.fail("no SyntaxError for %r" % (brokencode,))
    checkfilename("def f(x): foo)(")  # parse-time
    checkfilename("def f(x): global x")  # symtable-build-time