Skip to content

Commit

Permalink
Add failing test for testing out-of-order kw-only args
Browse files Browse the repository at this point in the history
  • Loading branch information
honno committed Apr 12, 2022
1 parent 19fa138 commit 447ecea
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions array_api_tests/meta/test_signatures.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 447ecea

Please sign in to comment.