MCPcopy Index your code
hub / github.com/python/cpython / test_invalid_syntax_1

Method test_invalid_syntax_1

Lib/test/test_patma.py:2941–2946  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2939 """)
2940
2941 def test_invalid_syntax_1(self):
2942 self.assert_syntax_error("""
2943 match ...:
2944 case {"first": first, **rest, "last": last}:
2945 pass
2946 """)
2947
2948 def test_invalid_syntax_2(self):
2949 self.assert_syntax_error("""

Callers

nothing calls this directly

Calls 1

assert_syntax_errorMethod · 0.95

Tested by

no test coverage detected