Skip to content

Commit 2f9fb30

Browse files
committed
Add failing test for testing out-of-order kw-only args
1 parent 377c89f commit 2f9fb30

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: array_api_tests/meta/test_signatures.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from inspect import signature
2+
3+
import pytest
4+
5+
from ..test_signatures import _test_inspectable_func
6+
7+
8+
@pytest.mark.xfail("not implemented")
9+
def test_kwonly():
10+
def func(*, foo=None, bar=None):
11+
pass
12+
13+
sig = signature(func)
14+
_test_inspectable_func(sig, sig)
15+
16+
def reversed_func(*, bar=None, foo=None):
17+
pass
18+
19+
reversed_sig = signature(reversed_func)
20+
_test_inspectable_func(sig, reversed_sig)

0 commit comments

Comments
 (0)