Skip to content

GH-50665: [Python] Assert s3fs selector result count - #50836

Open
erichanwang wants to merge 1 commit into
apache:mainfrom
erichanwang:fix/s3fs-selector-assertion-50665
Open

GH-50665: [Python] Assert s3fs selector result count#50836
erichanwang wants to merge 1 commit into
apache:mainfrom
erichanwang:fix/s3fs-selector-assertion-50665

Conversation

@erichanwang

Copy link
Copy Markdown

Rationale for this change

The recursive selector branch for the fsspec S3 backend evaluated len(infos) == 4 without asserting the result. As a result, an incorrect number of returned entries could pass the test unnoticed.

What changes are included in this PR?

  • Assert that the recursive s3fs selector returns four entries.

Fixes #50665.

Are these changes tested?

Yes. The modified test file passes Python syntax compilation, and git diff --check passes. The focused runtime test could not run locally because this checkout does not have the pyarrow test dependencies installed.

Are there any user-facing changes?

No. This change only strengthens an existing Python filesystem test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Python] s3fs selector count is not asserted

1 participant