tadeja commented on code in PR #55585:
URL: https://github.com/apache/arrow/pull/55585#discussion_r4665103239


##########
python/pyarrow/tests/test_array.py:
##########
@@ -316,18 +316,19 @@ def test_to_pandas_zero_copy():
         series.sum()
 
 
[email protected]
[email protected]
[email protected]
 def test_asarray():
-    # ensure this is tested both when pandas is present or not (ARROW-6564)
+    # no pandas mark: this must run both when pandas is present and when it
+    # is not (ARROW-6564)
 
     arr = pa.array(range(4))
 
-    # The iterator interface gives back an array of Int64Value's
+    # Iteration gives Scalar objects, preserved by NumPy's object array.
     np_arr = np.asarray([_ for _ in arr])
-    assert np_arr.tolist() == [0, 1, 2, 3]
+    assert np_arr.tolist() == list(arr)

Review Comment:
   ```suggestion
   ```
   This one could be removed as the next line also checks this.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to