From a7dd5260f3be834c331cba186b7328f2006df320 Mon Sep 17 00:00:00 2001 From: Anas Khan <83116240+anxkhn@users.noreply.github.com> Date: Mon, 27 Jul 2026 23:19:13 +0530 Subject: [PATCH] GH-50665: [Python] Assert s3fs selector result count Assert the recursive selector count for the fsspec S3 branch instead of discarding the comparison result. This aligns the branch with the existing count checks for other filesystems. Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com> --- python/pyarrow/tests/test_fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyarrow/tests/test_fs.py b/python/pyarrow/tests/test_fs.py index 5bf1950c0654..e5caa1c88ddf 100644 --- a/python/pyarrow/tests/test_fs.py +++ b/python/pyarrow/tests/test_fs.py @@ -803,7 +803,7 @@ def test_get_file_info_with_selector(fs, pathfn): infos = fs.get_file_info(selector) if fs.type_name == "py::fsspec+('s3', 's3a')": # s3fs only lists directories if they are not empty - len(infos) == 4 + assert len(infos) == 4 else: assert len(infos) == 5