Skip to content

Commit

Permalink
Only skip single parameter for test_slicing_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-werner committed Jan 10, 2018
1 parent ac2fce2 commit 818e58e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions sparse/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,18 +453,20 @@ def test_custom_dtype_slicing():
assert_eq(x['part3'], s['part3'])


@pytest.mark.skipif(
version.parse(np.version.version) < version.parse("1.13.0"),
reason="NumPy < 1.13.0 does not raise these Exceptions"
)
@pytest.mark.parametrize('index', [
(Ellipsis, Ellipsis),
(1, 1, 1, 1),
(slice(None),) * 4,
5,
-5,
'foo',
([True, False, False]),
pytest.param(
[True, False, False],
marks=pytest.mark.skipif(
version.parse(np.version.version) < version.parse("1.13.0"),
reason="NumPy < 1.13.0 does not raise these Exceptions"
)
),
])
def test_slicing_errors(index):
s = sparse.random((2, 3, 4), density=0.5)
Expand Down

0 comments on commit 818e58e

Please sign in to comment.