def METHOD_NAME(self, code):
    with pytest.raises(parso.ParserSyntaxError):
        module = parso.parse(code, version=self.version, error_recovery=False)
        # For debugging
        print(module.children)