You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Python] test_asarray and test_chunked_array_asarray never run due to mark pandas+nopandas #55486
Removing the marks alone isn't enough, because the body is stale and fails once it runs. I copied the test body out without the marks and ran it against the released wheel (pyarrow 26.0.1, numpy 2.4.6, pandas 3.1.1), not a build of main. The first block fails:
E assert [<pyarrow.Int...t64Scalar: 3>] == [0, 1, 2, 3]
E At index 0 diff: <pyarrow.Int64Scalar: 0> != 0
Iterating the array yields Int64Scalar objects, so np.asarray([_ for _ in arr]).tolist() returns scalars, not ints. With that assertion changed to [x.as_py() for x in np_arr] == [0, 1, 2, 3] and the isinstance check changed to pa.Int64Scalar, the test passes. The rest of the body passes unchanged.
#55264 edits the same lines (Int64Value to Int64Scalar) but keeps the tolist() assertion, so that line would still fail once the marks are fixed. I haven't opened a separate PR because it would overlap with #55264. If you'd rather review it on its own, I can send one with the marker fix too (drop pandas/nopandas, add numpy).
changed the title [-][Python] test_asarray never runs due to conflicting mark pandas+nopandas[/-][+][Python] test_asarray and test_chunked_array_asarray never run due to mark pandas+nopandas[/+]on Nov 23, 2026
Activity
09Catho commentedon Nov 11, 2026
Removing the marks alone isn't enough, because the body is stale and fails once it runs. I copied the test body out without the marks and ran it against the released wheel (pyarrow 26.0.1, numpy 2.4.6, pandas 3.1.1), not a build of main. The first block fails:
Iterating the array yields
Int64Scalarobjects, sonp.asarray([_ for _ in arr]).tolist()returns scalars, not ints. With that assertion changed to[x.as_py() for x in np_arr] == [0, 1, 2, 3]and the isinstance check changed topa.Int64Scalar, the test passes. The rest of the body passes unchanged.#55264 edits the same lines (
Int64ValuetoInt64Scalar) but keeps thetolist()assertion, so that line would still fail once the marks are fixed. I haven't opened a separate PR because it would overlap with #55264. If you'd rather review it on its own, I can send one with the marker fix too (droppandas/nopandas, addnumpy).apacheGH-55486: [Python] Make test_asarray run and update it to the c…
tadeja commentedon Nov 23, 2026
@AFOliveira could you post here, so I'd assign this issue to you?
[-][Python] test_asarray never runs due to conflicting mark pandas+nopandas[/-][+][Python] test_asarray and test_chunked_array_asarray never run due to mark pandas+nopandas[/+]