Skip to content

Commit

Permalink
Remove ErrorType
Browse files Browse the repository at this point in the history
  • Loading branch information
mhchia committed Feb 10, 2018
1 parent f02de29 commit ee0deb5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/core/numeric-utils/test_int_to_bytes32.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ def test_int_to_bytes32_valid(value, expected):


@pytest.mark.parametrize(
'value, ErrorType',
'value',
(
(-1, OverflowError),
(UINT_256_MAX + 1, ValueError),
-1,
UINT_256_MAX + 1,
)
)
def test_int_to_bytes32_invalid(value, ErrorType):
with pytest.raises(ErrorType):
def test_int_to_bytes32_invalid(value):
with pytest.raises(ValueError):
int_to_bytes32(value)

0 comments on commit ee0deb5

Please sign in to comment.