Skip to content

Commit

Permalink
longer strings in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Jul 23, 2024
1 parent c2e2144 commit d40f696
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion py-polars/tests/unit/interop/test_interop.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,13 @@ def test_compat_level(monkeypatch: pytest.MonkeyPatch) -> None:


def test_df_pycapsule_interface() -> None:
df = pl.DataFrame({"a": [1, 2, 3], "b": ["a", "b", "c"]})
df = pl.DataFrame(
{
"a": [1, 2, 3],
"b": ["a", "b", "c"],
"c": ["fooooooooooooooooooooo", "bar", "looooooooooooooooong string"],
}
)
out = pa.table(PyCapsuleStreamHolder(df))
assert df.shape == out.shape
assert df.schema.names() == out.schema.names
Expand Down

0 comments on commit d40f696

Please sign in to comment.