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

Method test_invalid_syntax_3

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

Source from the content-addressed store, hash-verified

2953 """)
2954
2955 def test_invalid_syntax_3(self):
2956 self.assert_syntax_error("""
2957 match ...:
2958 case 42 as _:
2959 pass
2960 """)
2961
2962 def test_len1_tuple_sequence_pattern_comma(self):
2963 # correct syntax would be `case(*x,):`

Callers

nothing calls this directly

Calls 1

assert_syntax_errorMethod · 0.95

Tested by

no test coverage detected