Skip to content

Commit

Permalink
Adapt test
Browse files Browse the repository at this point in the history
  • Loading branch information
wence- committed Oct 10, 2024
1 parent edda56c commit a454876
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/cudf_polars/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@

import rmm

from cudf_polars.dsl.ir import IR
from cudf_polars.dsl.ir import DataFrameScan
from cudf_polars.testing.asserts import (
assert_gpu_result_equal,
assert_ir_translation_raises,
)


def test_polars_verbose_warns(monkeypatch):
def raise_unimplemented(self, schema):
def raise_unimplemented(self, *args):
raise NotImplementedError("We don't support this")

monkeypatch.setattr(IR, "__init__", raise_unimplemented)
monkeypatch.setattr(DataFrameScan, "__init__", raise_unimplemented)
q = pl.LazyFrame({})
# Ensure that things raise
assert_ir_translation_raises(q, NotImplementedError)
Expand Down

0 comments on commit a454876

Please sign in to comment.