@@ -1226,10 +1226,10 @@ def test_download_arrow_tabledata_list_unknown_field_type(module_under_test):
12261226 assert len (result .columns ) == 2
12271227 col = result .columns [0 ]
12281228 assert type (col ) is pyarrow .lib .Int64Array
1229- assert list ( col ) == [1 , 10 , 100 ]
1229+ assert col . to_pylist ( ) == [1 , 10 , 100 ]
12301230 col = result .columns [1 ]
12311231 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 ]
12331233
12341234
12351235@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):
12611261 assert len (result .columns ) == 2
12621262 col = result .columns [0 ]
12631263 assert type (col ) is pyarrow .lib .Int64Array
1264- assert list ( col ) == [1 , 10 , 100 ]
1264+ assert col . to_pylist ( ) == [1 , 10 , 100 ]
12651265 col = result .columns [1 ]
12661266 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" ]
12681268
12691269
12701270@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):
12881288 assert len (result .columns ) == 2
12891289 col = result .columns [0 ]
12901290 assert type (col ) is pyarrow .lib .Int64Array
1291- assert list ( col ) == [1 , 10 , 100 ]
1291+ assert col . to_pylist ( ) == [1 , 10 , 100 ]
12921292 col = result .columns [1 ]
12931293 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" ]
12951295
12961296
12971297@pytest .mark .skipif (pandas is None , reason = "Requires `pandas`" )
0 commit comments