Skip to content

Commit b07a507

Browse files
mvanhornclaude
andcommitted
Remove test_patma changes per review feedback
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3b7072e commit b07a507

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

Lib/test/test_patma.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff 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-
32683233
class TestTypeErrors(unittest.TestCase):
32693234

32703235
def test_accepts_positional_subpatterns_0(self):

0 commit comments

Comments
 (0)