1fanwang commented on code in PR #51246:
URL: https://github.com/apache/arrow/pull/51246#discussion_r3995186284
##########
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:
The testing description now matches the in-process regression.
--
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]