diff --git a/array_api_tests/meta/test_signatures.py b/array_api_tests/meta/test_signatures.py new file mode 100644 index 00000000..1e34d176 --- /dev/null +++ b/array_api_tests/meta/test_signatures.py @@ -0,0 +1,20 @@ +from inspect import signature + +import pytest + +from ..test_signatures import _test_inspectable_func + + +@pytest.mark.xfail("not implemented") +def test_kwonly(): + def func(*, foo=None, bar=None): + pass + + sig = signature(func) + _test_inspectable_func(sig, sig) + + def reversed_func(*, bar=None, foo=None): + pass + + reversed_sig = signature(reversed_func) + _test_inspectable_func(sig, reversed_sig)