Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/py-polars/tests/unit/constructors/test_strictness.py
6939 views
1
import pytest
2
3
import polars as pl
4
5
6
def test_list_constructor_strictness() -> None:
7
with pytest.raises(TypeError, match="setting `strict=False`"):
8
pl.Series([[1], ["two"]], strict=True)
9
10