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

Function test_jvm_buffer_released

python/pyarrow/tests/test_jvm.py:78–86  ·  view source on GitHub ↗
(root_allocator)

Source from the content-addressed store, hash-verified

76
77
78def test_jvm_buffer_released(root_allocator):
79 import jpype.imports # noqa
80 from java.lang import IllegalArgumentException
81
82 jvm_buffer = root_allocator.buffer(8)
83 jvm_buffer.release()
84
85 with pytest.raises(IllegalArgumentException):
86 pa_jvm.jvm_buffer(jvm_buffer)
87
88
89def _jvm_field(jvm_spec):

Callers

nothing calls this directly

Calls 2

bufferMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected