MCPcopy Index your code
hub / github.com/RustPython/RustPython / syntax_forbidden_name.py

File syntax_forbidden_name.py

extra_tests/snippets/syntax_forbidden_name.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from testutils import assert_raises
2
3def raisesSyntaxError(parse_stmt, exec_stmt=None):
4 with assert_raises(SyntaxError):

Callers

nothing calls this directly

Calls 1

raisesSyntaxErrorFunction · 0.85

Tested by

no test coverage detected