Skip to content

Commit

Permalink
Use full path for file (#1836)
Browse files Browse the repository at this point in the history
The relative path causes issues when running from a different working dir (it does for me), fixed by using an absolute path.
  • Loading branch information
zundertj committed Nov 21, 2021
1 parent cf8b036 commit 7314dd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py-polars/tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ def test_compressed_csv() -> None:
assert out.frame_equal(expected)

# now from disk
out = pl.read_csv("tests/files/gzipped.csv")
csv_file = Path(__file__).parent / "files" / "gzipped.csv"
out = pl.read_csv(str(csv_file))
assert out.frame_equal(expected)

# now with column projection
Expand Down

0 comments on commit 7314dd2

Please sign in to comment.