Skip to content

Commit

Permalink
separate list and tuple checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Apr 19, 2024
1 parent 85b17ac commit f50f64c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ def assert_json_value_equal(
Raises:
AssertionError: If the two values are not equal
"""
if isinstance(result, (list, tuple)) and isinstance(expected, (list, tuple)):
if isinstance(result, list) and isinstance(expected, list):
assert_sequence_equal(result, expected, key_name=key_name, precision=precision)

elif isinstance(result, tuple) and isinstance(expected, tuple):
assert_sequence_equal(result, expected, key_name=key_name, precision=precision)

elif isinstance(result, (int, float)) and isinstance(expected, (int, float)):
Expand Down

0 comments on commit f50f64c

Please sign in to comment.