jorisvandenbossche commented on a change in pull request #10199:
URL: https://github.com/apache/arrow/pull/10199#discussion_r623819764
##########
File path: python/pyarrow/tests/test_array.py
##########
@@ -2666,6 +2666,31 @@ def test_array_masked():
assert arr.type == pa.int64()
+def test_binary_array_masked():
+ # ARROW-12431
+ masked_basic = pa.array([b'\x05'], type=pa.binary(1),
+ mask=np.array([False]))
+ assert pa.array([b'\x05']).to_pylist() == masked_basic.to_pylist()
Review comment:
```suggestion
assert [b'\x05'] == masked_basic.to_pylist()
```
I would compare it here to the known result, since it's a simple result (and
to not rely on another conversion path)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]