Skip to content

Commit

Permalink
Debug error to see what np.core.sctypes looks like in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 committed Jul 15, 2024
1 parent e01434c commit 945f900
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/streaming/test_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ def test_assert_no_header_numpy_serializer():
t = np.ones((10,))
assert serializer.can_serialize(t)
data, name = serializer.serialize(t)
assert name == "no_header_numpy:10"
try:
assert name == "no_header_numpy:10"
except AssertionError: # debug what np.core.sctypes looks like on Windows
print(np.core.sctypes)
assert serializer._dtype is None
serializer.setup(name)
assert serializer._dtype == np.dtype("float64")
Expand Down

0 comments on commit 945f900

Please sign in to comment.