1import pytest 2 3from polars._utils.various import issue_warning 4from polars.exceptions import PerformanceWarning 5 6 7def test_issue_warning() -> None: 8 msg = "hello" 9 with pytest.warns(PerformanceWarning, match=msg): 10 issue_warning(msg, PerformanceWarning) 11 12