Skip to content

Commit

Permalink
Merge branch 'fix_empty_json_list' of https://github.com/deanm0000/po…
Browse files Browse the repository at this point in the history
…lars into fix_empty_json_list
  • Loading branch information
deanm0000 committed Sep 19, 2024
2 parents 3a10f3b + ba1240b commit b6c709f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py-polars/tests/unit/io/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ def test_empty_list_json() -> None:
assert df.shape == (0, 0)
assert isinstance(df, pl.DataFrame)

df = pl.read_json(b"[]")
assert df.shape == (0, 0)
assert isinstance(df, pl.DataFrame)


def test_compressed_json() -> None:
# shared setup
Expand Down

0 comments on commit b6c709f

Please sign in to comment.