Skip to content

Commit

Permalink
Parametrize xp for test_make_namespace_raises_invalid_argument
Browse files Browse the repository at this point in the history
  • Loading branch information
honno committed Sep 16, 2022
1 parent 4ad2736 commit 93b16c5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions hypothesis-python/tests/array_api/test_argument_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@
import pytest

from hypothesis.errors import InvalidArgument
from hypothesis.extra.array_api import (
NominalVersion,
make_strategies_namespace,
mock_xp,
)
from hypothesis.extra.array_api import NominalVersion, make_strategies_namespace


def e(name, *, _min_version: Optional[NominalVersion] = None, **kwargs):
Expand Down Expand Up @@ -231,6 +227,6 @@ def test_raise_invalid_argument(xp, xps, strat_name, kwargs):


@pytest.mark.parametrize("api_version", [None, "latest", "1970.01", 42])
def test_make_namespace_raise_invalid_argument(api_version):
def test_make_namespace_raise_invalid_argument(xp, xps, api_version):
with pytest.raises(InvalidArgument):
make_strategies_namespace(mock_xp, api_version=api_version)
make_strategies_namespace(xp, api_version=api_version)

0 comments on commit 93b16c5

Please sign in to comment.