Skip to content

Commit

Permalink
Raise ValueError instead of print
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 committed Jul 15, 2024
1 parent 945f900 commit 11c7b95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/streaming/test_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ def test_assert_no_header_numpy_serializer():
data, name = serializer.serialize(t)
try:
assert name == "no_header_numpy:10"
except AssertionError: # debug what np.core.sctypes looks like on Windows
print(np.core.sctypes)
except AssertionError as e: # debug what np.core.sctypes looks like on Windows
raise ValueError(np.core.sctypes) from e
assert serializer._dtype is None
serializer.setup(name)
assert serializer._dtype == np.dtype("float64")
Expand Down

0 comments on commit 11c7b95

Please sign in to comment.