amol- commented on a change in pull request #11185: URL: https://github.com/apache/arrow/pull/11185#discussion_r727153949
########## File path: python/pyarrow/tests/test_array.py ########## @@ -2746,6 +2746,52 @@ def test_array_masked(): assert arr.type == pa.int64() +def test_array_supported_masks(): + # ARROW-13883 + arr = pa.array([4, None, 4, 3], + mask=pa.array([False, True, False, True])) + assert arr.to_pylist() == [4, None, 4, None] + + arr = pa.array([4, None, 4, 3], + mask=[False, True, False, True]) + assert arr.to_pylist() == [4, None, 4, None] + + arr = pa.array([4, 3, None, 3], + mask=[False, True, False, True]) + assert arr.to_pylist() == [4, None, None, None] + Review comment: Added a case to this test too btw -- 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. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org