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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

BufferOutputStreamMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected