Repository navigation
test: run test_dataframe.py when pyarrow.cffi is unavailable - #1863
Merged
Merged
Conversation
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>
Member
Author
|
Thanks @milenkovicm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
No issue. Found while working on #1862.
Rationale for this change
python/tests/test_dataframe.pyhas not run in CI since #1553. The module callspytest.importorskip("pyarrow.cffi")when it is imported, so the whole file is skipped whencffiis not installed.cffiused to come in throughpygithubin the dev group. #1553 movedpygithubto thereleasegroup, and the CI environment has had nocffisince then. The test log for #1826 has notest_dataframelines at all, and pytest reportscollected 1645 items / 1 skipped.What changes are included in this PR?
Only
test_arrow_c_stream_schema_selectionandtest_arrow_c_stream_schema_mismatchusepyarrow.cffi. The skip moves into those two tests, so the rest of the file runs whether or notcffiis installed.Locally without
cffi, 350 tests in the file pass and the twocffitests are skipped. Withcffiinstalled, all 352 pass, so turning the file back on should not surface failures.Adding
cffito the dev group would let those two tests run in CI as well. That needs auv.lockupdate, so it is not part of this change.Are there any user-facing changes?
No. This only changes which tests run.