Skip to content

Commit 60c2971

Browse files
committed
Fix test_relaxed_call for Python 3.13 TypeError message format
1 parent 7be415b commit 60c2971

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/tests/test_pyodide.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,7 @@ def f4(a, /, *args, b=7):
280280

281281
with pytest.raises(
282282
TypeError,
283-
match=re.escape(
284-
"test_relaxed_call.<locals>.f4() missing 1 required positional argument: 'a'"
285-
),
283+
match=r"missing a required positional-only argument: 'a'",
286284
):
287285
relaxed_call(f4, a=2, b=7)
288286

0 commit comments

Comments
 (0)