From d3d46223fb503121656d8b4bb8c92c283e879204 Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Mon, 30 Dec 2024 16:07:51 -0800 Subject: [PATCH] [minor] improve getargs test Improves test added in #18350 to confirm the args are actually parsed correctly --- mypyc/test-data/run-classes.test | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mypyc/test-data/run-classes.test b/mypyc/test-data/run-classes.test index 055327e786a2..db5459e22f5e 100644 --- a/mypyc/test-data/run-classes.test +++ b/mypyc/test-data/run-classes.test @@ -470,11 +470,15 @@ assert foo() == 21 [case testClassKwargs] class X: def __init__(self, msg: str, **variables: int) -> None: - pass + self.msg = msg + self.variables = variables + [file driver.py] import traceback from native import X -X('hello', a=0) +x = X('hello', a=0, b=1) +assert x.msg == 'hello' +assert x.variables == {'a': 0, 'b': 1} try: X('hello', msg='hello') except TypeError as e: