randolf-scholz commented on PR #34991:
URL: https://github.com/apache/arrow/pull/34991#issuecomment-1501125624

   Possible Unit-Test:
   
   ```python
   import pyarrow as pa
   import pytest
   
   def test_BooleanScalar__bool__():
       t  = pa.scalar(True, type=pa.bool_())
       f  = pa.scalar(False, type=pa.bool_())
       m  = pa.scalar(None, type=pa.bool_())
       assert bool(t) is True
       assert bool(f) is False
       with pytest.raises(TypeError):
           bool(m)
   ```


-- 
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

Reply via email to