Skip to content

test: run test_dataframe.py when pyarrow.cffi is unavailable - #1863

Merged
andygrove merged 1 commit into
apache:mainfrom
andygrove:ci-run-test-dataframe
Dec 6, 2026
Merged

andygrove merged 1 commit into
apache:mainfrom
andygrove:ci-run-test-dataframe

Conversation

@andygrove

Copy link
Copy Markdown
Member

Which issue does this PR close?

No issue. Found while working on #1862.

Rationale for this change

python/tests/test_dataframe.py has not run in CI since #1553. The module calls pytest.importorskip("pyarrow.cffi") when it is imported, so the whole file is skipped when cffi is not installed. cffi used to come in through pygithub in the dev group. #1553 moved pygithub to the release group, and the CI environment has had no cffi since then. The test log for #1826 has no test_dataframe lines at all, and pytest reports collected 1645 items / 1 skipped.

What changes are included in this PR?

Only test_arrow_c_stream_schema_selection and test_arrow_c_stream_schema_mismatch use pyarrow.cffi. The skip moves into those two tests, so the rest of the file runs whether or not cffi is installed.

Locally without cffi, 350 tests in the file pass and the two cffi tests are skipped. With cffi installed, all 352 pass, so turning the file back on should not surface failures.

Adding cffi to the dev group would let those two tests run in CI as well. That needs a uv.lock update, so it is not part of this change.

Are there any user-facing changes?

No. This only changes which tests run.

test_dataframe.py called pytest.importorskip("pyarrow.cffi") at module
level, so the whole file was skipped when cffi was not installed. cffi
used to arrive through pygithub in the dev group. Since apache#1553 moved
pygithub to the release group, CI has no cffi, and none of the file's
roughly 350 tests have run there.

Only test_arrow_c_stream_schema_selection and
test_arrow_c_stream_schema_mismatch use pyarrow.cffi. Skip just those two.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@milenkovicm milenkovicm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @andygrove

@andygrove
andygrove merged commit f029726 into apache:main Dec 6, 2026
26 checks passed
@andygrove

Copy link
Copy Markdown
Member Author

Thanks @milenkovicm

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants