-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
CI: fix nightly #869
Conversation
There was a problem hiding this 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
if PD_LTE_22: | ||
path = Path(CWD, "data", "labelled-num.sav") | ||
with pytest_warns_bounded( | ||
FutureWarning, | ||
"ChainedAssignmentError: behaviour will change", | ||
lower="2.1.99", | ||
): |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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"
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @twoertwein
assert_type()
to assert the type of any return value