Skip to content

Commit 7f08b71

Browse files
committed
Fix test case
1 parent 7982d8f commit 7f08b71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3953,12 +3953,13 @@ def testfunc(n):
39533953
def test_match_class(self):
39543954
def testfunc(n):
39553955
class A:
3956+
__match_args__ = ("val",)
39563957
val = 1
39573958
x = A()
39583959
ret = 0
39593960
for _ in range(n):
39603961
match x:
3961-
case A():
3962+
case A(1):
39623963
ret += x.val
39633964
return ret
39643965

0 commit comments

Comments
 (0)