MCPcopy Create free account
hub / github.com/apache/arrow / test_buffer_eq_bytes

Function test_buffer_eq_bytes

python/pyarrow/tests/test_io.py:554–561  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

552
553
554def test_buffer_eq_bytes():
555 buf = pa.py_buffer(b'some data')
556 assert buf == b'some data'
557 assert buf == bytearray(b'some data')
558 assert buf != b'some dat1'
559
560 with pytest.raises(TypeError):
561 buf == 'some data'
562
563
564def test_buffer_getitem():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected