File tree Expand file tree Collapse file tree 1 file changed +0
-35
lines changed
Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -3230,41 +3230,6 @@ def test_mapping_pattern_duplicate_key_edge_case3(self):
32303230 pass
32313231 """ )
32323232
3233- def test_unary_add_in_literal_pattern (self ):
3234- self .assert_syntax_error ("""
3235- match ...:
3236- case +1:
3237- pass
3238- """ )
3239-
3240- def test_unary_add_in_or_pattern (self ):
3241- self .assert_syntax_error ("""
3242- match ...:
3243- case 1 | +2 | -3:
3244- pass
3245- """ )
3246-
3247- def test_unary_add_in_sequence_pattern (self ):
3248- self .assert_syntax_error ("""
3249- match ...:
3250- case [1, +2, -3]:
3251- pass
3252- """ )
3253-
3254- def test_unary_add_in_class_pattern (self ):
3255- self .assert_syntax_error ("""
3256- match ...:
3257- case Foo(x=+1, y=-2):
3258- pass
3259- """ )
3260-
3261- def test_unary_add_in_mapping_pattern (self ):
3262- self .assert_syntax_error ("""
3263- match ...:
3264- case {True: +1, False: -2}:
3265- pass
3266- """ )
3267-
32683233class TestTypeErrors (unittest .TestCase ):
32693234
32703235 def test_accepts_positional_subpatterns_0 (self ):
You can’t perform that action at this time.
0 commit comments