

def check_bad_tree(self, tree, label):
    try:
        parser.sequence2st(tree)
    except parser.ParserError:
        pass
    else:
        self.fail(('did not detect invalid tree for %r' % label))

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_parser.py IllegalSyntaxTestCase.check_bad_tree/original