Describe the bug, including details regarding any error messages, version, and platform.
test_get_file_info_with_selector in python/pyarrow/tests/test_fs.py evaluates len(infos) == 4 without asserting it for recursive listings through the fsspec S3 backend. The comparison result is discarded, so an incorrect result count can pass this branch of the test.
Expected: the s3fs recursive listing count is asserted, as it is for the other filesystem branches.
Actual: the count comparison has no effect.
Component(s)
Python
Describe the bug, including details regarding any error messages, version, and platform.
test_get_file_info_with_selectorinpython/pyarrow/tests/test_fs.pyevaluateslen(infos) == 4without asserting it for recursive listings through the fsspec S3 backend. The comparison result is discarded, so an incorrect result count can pass this branch of the test.Expected: the s3fs recursive listing count is asserted, as it is for the other filesystem branches.
Actual: the count comparison has no effect.
Component(s)
Python