mgorny commented on code in PR #40176:
URL: https://github.com/apache/arrow/pull/40176#discussion_r1497644474


##########
python/pyarrow/tests/test_io.py:
##########
@@ -1137,7 +1142,14 @@ def test_memory_zero_length(tmpdir):
 
 
 def test_memory_map_large_seeks():
-    check_large_seeks(pa.memory_map)
+    if sys.maxsize >= 2**32:
+        expected_error = None

Review Comment:
   Well, I think you could do something like:
   
   ```python
   with expected_error:
       f = file_factory(filename)
   with f:
       ...
   ```
   
   I hope I'm not being too persistent.



-- 
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]

Reply via email to