Skip to content

Commit

Permalink
make test work with dict encoded
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Oct 12, 2021
1 parent 51b2c06 commit 0df4b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/dataframe_protocol_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def assert_buffer_equal(buffer_dtype: Tuple[_VaexBuffer, Any], vaexcol: vaex.exp
buf, dtype = buffer_dtype
pytest.raises(NotImplementedError, buf.__dlpack__)
assert buf.__dlpack_device__() == (1, None)
assert dtype[1] == vaexcol.dtype.numpy.itemsize * 8
assert dtype[1] == vaexcol.dtype.index_type.numpy.itemsize * 8
if not isinstance(vaexcol.values, np.ndarray) and isinstance(vaexcol.values.type, pa.DictionaryType):
assert dtype[2] == vaexcol.index_values().dtype.numpy.str
else:
Expand Down

0 comments on commit 0df4b34

Please sign in to comment.