diff --git a/py-polars/tests/unit/sql/test_miscellaneous.py b/py-polars/tests/unit/sql/test_miscellaneous.py index 73b8d3393f23..7f37e20bdda3 100644 --- a/py-polars/tests/unit/sql/test_miscellaneous.py +++ b/py-polars/tests/unit/sql/test_miscellaneous.py @@ -95,7 +95,7 @@ def test_frame_sql_globals_error() -> None: FROM df2 JOIN df1 ON df1.a = df2.a ORDER BY b DESC """ - with pytest.raises(ComputeError, match=".*not found.*"): + with pytest.raises(SQLInterfaceError, match=".*not found.*"): df1.sql(query=query) res = pl.sql(query=query, eager=True)