data-apis / array-api-tests

Test suite for the PyData Array APIs standard
https://data-apis.org/array-api-tests/
MIT License
63 stars 39 forks source link

Allow different arg names for positional-only arguments in signature tests #256

Open honno opened 4 months ago

honno commented 4 months ago

Currently the suite fails when signatures use different arg names then whats in the spec for pos-only args, even though it shouldn't really matter.

For example, testing a function with the following signature

def f(x, y, /):
    ...

should pass an implementation of f(a, b, /).

Thanks @Micky774 for catching this!