Skip to content

Commit 0b02fcb

Browse files
committed
Add comment about TypeError message change in Python 3.13.3 (python/cpython#130192)
1 parent e5a19d9 commit 0b02fcb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tests/test_pyodide.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,12 @@ def f3(a, *args, b=7):
278278
def f4(a, /, *args, b=7):
279279
return [a, args, b]
280280

281+
# Since Python 3.13.3, the TypeError message for missing positional-only arguments has changed.
282+
# See: https://github.com/python/cpython/pull/130192
281283
with pytest.raises(TypeError, match=r"missing .* argument: 'a'"):
282284
relaxed_call(f4, a=2, b=7)
283285

286+
284287
def f5(a, *args, b=7, **kwargs):
285288
return [a, args, b, kwargs]
286289

0 commit comments

Comments
 (0)