Skip to content

Commit

Permalink
fix last xfail
Browse files Browse the repository at this point in the history
  • Loading branch information
elbeejay committed Jun 3, 2020
1 parent 63ca40e commit 51b4b2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_shared_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,11 @@ def test_custom_unravel_rectangle():
assert y == 4


@pytest.mark.xfail(raises=IndexError, strict=True)
def test_custom_unravel_exceed_error():
arr = np.arange(9).reshape((3, 3))
x, y = shared_tools.custom_unravel(99, arr.shape)
# next line should throw IndexError
with pytest.raises(IndexError):
x, y = shared_tools.custom_unravel(99, arr.shape)


def test_check_for_loops():
Expand Down

0 comments on commit 51b4b2c

Please sign in to comment.