Open
Description
SciPy has two sets of testing support utilities:
{skip_xfail}_xp_backends
skips, https://github.com/scipy/scipy/blob/main/scipy/conftest.py#L215 . These are convenient for testing across the range of array api backends. Note that these are pytest-specific.- assertions,
xp_assert_{equal,close}
, https://github.com/scipy/scipy/blob/main/scipy/_lib/_array_api.py#L299. These wrap backend-specific assertions, and scipy effectively transitions fromnp.testing
to these ones. Quite a bit of effort went into crafting these ones, and ISTM these can be useful across the ecosystem.