Skip to content

Commit

Permalink
TestDeepHash: test numpy booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
doronbehar committed Oct 20, 2024
1 parent 32df472 commit cee3d41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ def test_re(self):
a_hash = DeepHash(a)[a]
assert not( a_hash is unprocessed)

# https://github.com/seperman/deepdiff/issues/494
def test_numpy_bool(self):
a = {'b': np.array([True], dtype='bool')}
a_hash = DeepHash(a)[a]
assert not( a_hash is unprocessed)

class TestDeepHashPrep:
"""DeepHashPrep Tests covering object serialization."""

Expand Down

0 comments on commit cee3d41

Please sign in to comment.