Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/py-polars/tests/unit/utils/test_various.py
8420 views
1
import pytest
2
3
from polars._utils.various import issue_warning
4
from polars.exceptions import PerformanceWarning
5
6
7
def test_issue_warning() -> None:
8
msg = "hello"
9
with pytest.warns(PerformanceWarning, match=msg):
10
issue_warning(msg, PerformanceWarning)
11
12