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

Function test_inmemory_write_after_closed

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

Source from the content-addressed store, hash-verified

982
983
984def test_inmemory_write_after_closed():
985 f = pa.BufferOutputStream()
986 f.write(b'ok')
987 assert not f.closed
988 f.getvalue()
989 assert f.closed
990
991 with pytest.raises(ValueError):
992 f.write(b'not ok')
993
994
995def test_buffer_protocol_ref_counting():

Callers

nothing calls this directly

Calls 2

BufferOutputStreamMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected