@@ -1226,10 +1226,10 @@ def test_download_arrow_tabledata_list_unknown_field_type(module_under_test):
1226
1226
assert len (result .columns ) == 2
1227
1227
col = result .columns [0 ]
1228
1228
assert type (col ) is pyarrow .lib .Int64Array
1229
- assert list ( col ) == [1 , 10 , 100 ]
1229
+ assert col . to_pylist ( ) == [1 , 10 , 100 ]
1230
1230
col = result .columns [1 ]
1231
1231
assert type (col ) is pyarrow .lib .DoubleArray
1232
- assert list ( col ) == [2.2 , 22.22 , 222.222 ]
1232
+ assert col . to_pylist ( ) == [2.2 , 22.22 , 222.222 ]
1233
1233
1234
1234
1235
1235
@pytest .mark .skipif (isinstance (pyarrow , mock .Mock ), reason = "Requires `pyarrow`" )
@@ -1261,10 +1261,10 @@ def test_download_arrow_tabledata_list_known_field_type(module_under_test):
1261
1261
assert len (result .columns ) == 2
1262
1262
col = result .columns [0 ]
1263
1263
assert type (col ) is pyarrow .lib .Int64Array
1264
- assert list ( col ) == [1 , 10 , 100 ]
1264
+ assert col . to_pylist ( ) == [1 , 10 , 100 ]
1265
1265
col = result .columns [1 ]
1266
1266
assert type (col ) is pyarrow .lib .StringArray
1267
- assert list ( col ) == ["2.2" , "22.22" , "222.222" ]
1267
+ assert col . to_pylist ( ) == ["2.2" , "22.22" , "222.222" ]
1268
1268
1269
1269
1270
1270
@pytest .mark .skipif (isinstance (pyarrow , mock .Mock ), reason = "Requires `pyarrow`" )
@@ -1288,10 +1288,10 @@ def test_download_arrow_tabledata_list_dict_sequence_schema(module_under_test):
1288
1288
assert len (result .columns ) == 2
1289
1289
col = result .columns [0 ]
1290
1290
assert type (col ) is pyarrow .lib .Int64Array
1291
- assert list ( col ) == [1 , 10 , 100 ]
1291
+ assert col . to_pylist ( ) == [1 , 10 , 100 ]
1292
1292
col = result .columns [1 ]
1293
1293
assert type (col ) is pyarrow .lib .StringArray
1294
- assert list ( col ) == ["2.2" , "22.22" , "222.222" ]
1294
+ assert col . to_pylist ( ) == ["2.2" , "22.22" , "222.222" ]
1295
1295
1296
1296
1297
1297
@pytest .mark .skipif (pandas is None , reason = "Requires `pandas`" )
0 commit comments