1fanwang commented on code in PR #51246:
URL: https://github.com/apache/arrow/pull/51246#discussion_r3983409469
##########
python/pyarrow/tests/test_io.py:
##########
@@ -1216,6 +1216,11 @@ def test_memory_map_resize(tmpdir):
assert f.read() == bytes(arr[:SIZE])
+def test_memory_map_resize_uninitialized():
+ with pytest.raises(ValueError, match="I/O operation on closed file"):
+ pa.MemoryMappedFile().resize(0)
+
+
Review Comment:
Keeping it in-process per
https://github.com/apache/arrow/pull/51246#discussion_r3976334026; with the fix
it raises rather than crashing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]