@@ -129,7 +129,7 @@ def test_coerce_dtype(data, from_dtype, to_dtype, exception_cls):
129
129
NULLABLE_DTYPES_AND_DATA = [
130
130
[pl .Int64 , [1 , 2 , 3 , None ]],
131
131
[pl .Utf8 , ["foo" , "bar" , "baz" , None ]],
132
- [pl .Float64 , [1.0 , 2.0 , 3.0 , float ("nan" )]],
132
+ [pl .Float64 , [1.0 , 2.0 , 3.0 , float ("nan" ), None ]],
133
133
[pl .Boolean , [True , False , True , None ]],
134
134
]
135
135
@@ -138,7 +138,7 @@ def test_coerce_dtype(data, from_dtype, to_dtype, exception_cls):
138
138
@pytest .mark .parametrize ("nullable" , [True , False ])
139
139
def test_check_nullable (dtype , data , nullable ):
140
140
data = pl .LazyFrame ({"column" : pl .Series (data , dtype = dtype )})
141
- column_schema = pa .Column (pl . Int64 , nullable = nullable , name = "column" )
141
+ column_schema = pa .Column (dtype , nullable = nullable , name = "column" )
142
142
backend = ColumnBackend ()
143
143
check_results : List [CoreCheckResult ] = backend .check_nullable (
144
144
data , column_schema
@@ -153,9 +153,7 @@ def test_check_nullable_regex(dtype, data, nullable):
153
153
data = pl .LazyFrame (
154
154
{f"column_{ i } " : pl .Series (data , dtype = dtype ) for i in range (3 )}
155
155
)
156
- column_schema = pa .Column (
157
- pl .Int64 , nullable = nullable , name = r"^column_\d+$"
158
- )
156
+ column_schema = pa .Column (dtype , nullable = nullable , name = r"^column_\d+$" )
159
157
backend = ColumnBackend ()
160
158
check_results = backend .check_nullable (data , column_schema )
161
159
for result in check_results :
0 commit comments