Fokko commented on code in PR #3723:
URL: https://github.com/apache/iceberg-python/pull/3723#discussion_r3700133413


##########
tests/io/test_pyarrow.py:
##########
@@ -163,13 +164,16 @@ def test_pyarrow_input_file() -> None:
 
         # Test opening and reading the file
         r = input_file.open(seekable=False)
-        assert isinstance(r, InputStream)  # Test that the file object abides 
by the InputStream protocol
-        data = r.read()
-        assert data == b"foo"
-        assert len(input_file) == 3
-        with pytest.raises(OSError) as exc_info:
-            r.seek(0, 0)
-        assert "only valid on seekable files" in str(exc_info.value)
+        try:

Review Comment:
   ```suggestion
           with input_file.open(seekable=True) as r:
   ```



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to