Skip to content

Commit cee3d41

Browse files
committed
TestDeepHash: test numpy booleans
1 parent 32df472 commit cee3d41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_hash.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ def test_re(self):
187187
a_hash = DeepHash(a)[a]
188188
assert not( a_hash is unprocessed)
189189

190+
# https://github.com/seperman/deepdiff/issues/494
191+
def test_numpy_bool(self):
192+
a = {'b': np.array([True], dtype='bool')}
193+
a_hash = DeepHash(a)[a]
194+
assert not( a_hash is unprocessed)
195+
190196
class TestDeepHashPrep:
191197
"""DeepHashPrep Tests covering object serialization."""
192198

0 commit comments

Comments
 (0)