Skip to content

Commit

Permalink
Fixed test_datetime_value_too_large() failing on PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Feb 1, 2024
1 parent 6d8e2a4 commit ba81d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def test_datetime_value_too_large(impl):
with pytest.raises(impl.CBORDecodeError) as excinfo:
impl.loads(unhexlify("c11b1616161616161616161616161616"))

assert isinstance(excinfo.value.__cause__, OSError)
assert excinfo.value.__cause__ is not None


def test_datetime_date_out_of_range(impl):
Expand Down

0 comments on commit ba81d7f

Please sign in to comment.