Skip to content

Commit

Permalink
Remove print statements from Python tests (#1840)
Browse files Browse the repository at this point in the history
  • Loading branch information
zundertj committed Nov 21, 2021
1 parent 7f973d6 commit dc87467
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions py-polars/tests/test_datelike.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ def test_from_pydatetime() -> None:
assert s.name == "name"
assert s.null_count() == 1
assert s.dt[0] == dates[0]
# fmt dates and nulls
print(s)

dates = [date(2021, 1, 1), date(2021, 1, 2), date(2021, 1, 3), None] # type: ignore
s = pl.Series("name", dates)
Expand All @@ -140,9 +138,6 @@ def test_from_pydatetime() -> None:
assert s.null_count() == 1
assert s.dt[0] == dates[0]

# fmt dates and nulls
print(s)


def test_to_python_datetime() -> None:
df = pl.DataFrame({"a": [1, 2, 3]})
Expand Down
1 change: 0 additions & 1 deletion py-polars/tests/test_interop.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def test_from_pandas_nested_list() -> None:
{"a": [1, 2, 3, 4], "b": [["x", "y"], ["x", "y", "z"], ["x"], ["x", "y"]]}
)
pldf = pl.from_pandas(pddf)
print(pldf)
assert pldf.shape == (4, 2)


Expand Down
3 changes: 0 additions & 3 deletions py-polars/tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,9 @@ def test_parquet_chunks() -> None:
np.tile([1.0, pd.to_datetime("2010-10-10")], [case, 1]),
columns=["floats", "dates"],
)
print(df)

# write as parquet
df.to_parquet(f)

print(f"reading {case} dates with polars...", end="")
f.seek(0)

# read it with polars
Expand Down
1 change: 0 additions & 1 deletion py-polars/tests/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@ def test_mode() -> None:

def test_jsonpath_single() -> None:
s = pl.Series(['{"a":"1"}', None, '{"a":2}', '{"a":2.1}', '{"a":true}'])
print(s.str.json_path_match("$.a"))
assert s.str.json_path_match("$.a").to_list() == [
"1",
None,
Expand Down

0 comments on commit dc87467

Please sign in to comment.