Skip to content

Commit

Permalink
fix(test): pytest decided to break pytest.raises
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Jul 2, 2019
1 parent 8d015d9 commit ccf029e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/cast_to_array_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ def test_safe_casting(ds_local):
ds = ds_local
# with pytest.raises(ValueError, match='.*Cannot cast.*', message='Should use safe casting rules (no precision loss)'):
np.array(ds[['ints']])
with pytest.raises(ValueError, match='.*Cannot cast.*', message='Should use safe casting rules (no precision loss)'):
with pytest.raises(ValueError, match='.*Cannot cast.*'):
np.array(ds[['ints', 'x']], dtype=np.int64)
pytest.fail('Should use safe casting rules (no precision loss)')


def test_default_float64(ds_local):
Expand Down

0 comments on commit ccf029e

Please sign in to comment.