Skip to content

Commit

Permalink
Handle None jzarr return in tabulation
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Apr 27, 2021
1 parent 1f24c8d commit 6d02348
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/test_read_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,12 @@ def tabulate_test_results(params, per_codec_tables=False):
fail_type = f"{type(e).__name__}: {e}"

if fail_type is None:
result = test.shape == reference.shape
result = result and np.allclose(test, reference)
if test is None:
# Assume implementation handled the verification
result = True
else:
result = test.shape == reference.shape
result = result and np.allclose(test, reference)
else:
result = fail_type

Expand Down

0 comments on commit 6d02348

Please sign in to comment.