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:985–993  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

BufferOutputStreamMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected