Skip to content

Commit

Permalink
Test that JSONDecodeError is a subclass of ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAnotherArchivist committed Feb 5, 2022
1 parent 3343405 commit cc67f37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_ujson.py
Expand Up @@ -614,6 +614,10 @@ def test_decode_raises_for_long_input(test_input, expected):
ujson.decode(test_input * (1024 * 1024))


def test_decode_exception_is_value_error():
assert issubclass(ujson.JSONDecodeError, ValueError)


@pytest.mark.parametrize(
"test_input, expected",
[
Expand Down

0 comments on commit cc67f37

Please sign in to comment.