diff --git a/py-polars/tests/unit/io/test_lazy_csv.py b/py-polars/tests/unit/io/test_lazy_csv.py index b99c32be3d28..1df38661b8c9 100644 --- a/py-polars/tests/unit/io/test_lazy_csv.py +++ b/py-polars/tests/unit/io/test_lazy_csv.py @@ -203,7 +203,7 @@ def test_lazy_row_count_no_push_down(foods_file_path: Path) -> None: # related to row count is not pushed. assert 'FILTER [(col("row_nr")) == (1)] FROM' in plan # unrelated to row count is pushed. - assert 'SELECTION: [(col("category")) == (Utf8(vegetables))]' in plan + assert 'SELECTION: [(col("category")) == (String(vegetables))]' in plan @pytest.mark.write_disk() diff --git a/py-polars/tests/unit/operations/test_is_in.py b/py-polars/tests/unit/operations/test_is_in.py index dc60cfc2f936..967dcf19dd51 100644 --- a/py-polars/tests/unit/operations/test_is_in.py +++ b/py-polars/tests/unit/operations/test_is_in.py @@ -141,7 +141,7 @@ def test_is_in_series() -> None: with pytest.raises( pl.InvalidOperationError, - match=r"`is_in` cannot check for Utf8 values in Int64 data", + match=r"`is_in` cannot check for String values in Int64 data", ): df.select(pl.col("b").is_in(["x", "x"])) @@ -197,7 +197,7 @@ def test_is_in_float(dtype: pl.PolarsDataType) -> None: ( pl.DataFrame({"a": ["1", "2"], "b": [[1, 2], [3, 4]]}), None, - r"`is_in` cannot check for Utf8 values in List\(Int64\) data", + r"`is_in` cannot check for String values in List\(Int64\) data", ), ( pl.DataFrame({"a": [date.today(), None], "b": [[1, 2], [3, 4]]}), diff --git a/py-polars/tests/unit/test_errors.py b/py-polars/tests/unit/test_errors.py index 5e6dfb5fe1ae..520932f81faf 100644 --- a/py-polars/tests/unit/test_errors.py +++ b/py-polars/tests/unit/test_errors.py @@ -98,7 +98,9 @@ def test_not_found_error() -> None: def test_string_numeric_comp_err() -> None: - with pytest.raises(pl.ComputeError, match="cannot compare utf-8 with numeric data"): + with pytest.raises( + pl.ComputeError, match="cannot compare string with numeric data" + ): pl.DataFrame({"a": [1.1, 21, 31, 21, 51, 61, 71, 81]}).select(pl.col("a") < "9") diff --git a/py-polars/tests/unit/test_exprs.py b/py-polars/tests/unit/test_exprs.py index 23c4293f5ad2..e7643ce4598c 100644 --- a/py-polars/tests/unit/test_exprs.py +++ b/py-polars/tests/unit/test_exprs.py @@ -796,7 +796,7 @@ def test_repr_long_expression() -> None: result = repr(expr).split("0x")[0] # note the … denoting that there was truncated text - expected = "") diff --git a/py-polars/tests/unit/test_serde.py b/py-polars/tests/unit/test_serde.py index 6a733b791196..0183a2c272f6 100644 --- a/py-polars/tests/unit/test_serde.py +++ b/py-polars/tests/unit/test_serde.py @@ -133,7 +133,7 @@ def test_pickle_udf_expression() -> None: # tests that 'GetOutput' is also deserialized with pytest.raises( pl.SchemaError, - match=r"expected output type 'Utf8', got 'Int64'; set `return_dtype` to the proper datatype", + match=r"expected output type 'String', got 'Int64'; set `return_dtype` to the proper datatype", ): df.select(e)