apache / apache/arrow

[Python] s3fs selector count is not asserted

Open
#50,665 0 comments 0 reactions 1 assignee Claimed by @anxkhn View on GitHub
Component: Python
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.