amogh-jahagirdar commented on code in PR #543: URL: https://github.com/apache/iceberg-python/pull/543#discussion_r1554993080
########## tests/io/test_fsspec.py: ########## @@ -586,6 +597,25 @@ def test_writing_avro_file_gcs(generated_manifest_entry_file: str, fsspec_fileio fsspec_fileio_gcs.delete(f"gs://warehouse/{filename}") +@pytest.mark.gcs +def test_fsspec_pickle_roundtrip_gcs(fsspec_fileio_gcs: FsspecFileIO) -> None: + _test_fsspec_pickle_round_trip(fsspec_fileio_gcs, "gs://warehouse/foo.txt") + + +def _test_fsspec_pickle_round_trip(fsspec_fileio: FsspecFileIO, location: str) -> None: + serialized_file_io = pickle.dumps(fsspec_fileio) Review Comment: Agreed! I can take up renaming in a separate PR so it's easier to review. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org