Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: fix nightly #869

Merged
merged 3 commits into from
Feb 13, 2024
Merged

CI: fix nightly #869

merged 3 commits into from
Feb 13, 2024

Conversation

twoertwein
Copy link
Member

  • Closes #xxxx (Replace xxxx with the Github issue number)
  • Tests added: Please use assert_type() to assert the type of any return value

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

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

one issue with respect to read_spss() test, otherwise ok

tests/test_io.py Outdated
Comment on lines 431 to 437
if PD_LTE_22:
path = Path(CWD, "data", "labelled-num.sav")
with pytest_warns_bounded(
FutureWarning,
"ChainedAssignmentError: behaviour will change",
lower="2.1.99",
):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we need to do this test on nightly, but make the error message dependent on the version. For version 2.2, the message is "ChainedAssignmentError: behaviour will change" . For nightly, it is "ChainedAssignmentError: A value is trying to be set on"

So let's keep the test, and just make the message that is checked based on PD_LTE_22

There is an issue about this: pandas-dev/pandas#51315

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed! There were a few new errors on nightly (finally removed support for "ignore")

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

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

thanks @twoertwein

@Dr-Irv Dr-Irv merged commit 23b35e4 into pandas-dev:main Feb 13, 2024
13 checks passed
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.

None yet

2 participants