Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Jan 9, 2025
1 parent 442cf4c commit c0905ed
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions py-polars/tests/unit/io/cloud/test_credential_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,11 @@ def __call__(self) -> pl.CredentialProviderFunctionReturn:


def test_scan_credential_provider_serialization_pyversion() -> None:
import zlib

lf = pl.scan_parquet(
"s3://bucket/path", credential_provider=pl.CredentialProviderAWS()
)

serialized = lf.serialize()
serialized = zlib.decompress(serialized)
serialized = bytearray(serialized)

# We can't monkeypatch sys.python_version so we just mutate the output
Expand All @@ -93,8 +90,6 @@ def test_scan_credential_provider_serialization_pyversion() -> None:
serialized[i] = 255
serialized[i + 1] = 254

serialized = zlib.compress(serialized)

with pytest.raises(ComputeError, match=r"python version.*(3, 255, 254).*differs.*"):
lf = pl.LazyFrame.deserialize(io.BytesIO(serialized))

Expand Down

0 comments on commit c0905ed

Please sign in to comment.