Skip to content

Commit 2c4b772

Browse files
committed
Fix test_relaxed_wrap to support Python 3.13 TypeError message format
1 parent 60c2971 commit 2c4b772

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/tests/test_pyodide.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,11 @@ def f4(a, /, *args, b=7):
343343

344344
with pytest.raises(
345345
TypeError,
346-
match=re.escape(
347-
"test_relaxed_wrap.<locals>.f4() missing 1 required positional argument: 'a'"
348-
),
346+
match=r"missing a required positional[- ]only argument: 'a'",
349347
):
350348
f4(a=2, b=7)
351349

350+
352351
@relaxed_wrap
353352
def f5(a, *args, b=7, **kwargs):
354353
return [a, args, b, kwargs]

0 commit comments

Comments
 (0)