-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Bug in pandas assert_*_equal wrapper test causes other tests to pass when they should fail #1447
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
Comments
I think it's because the def test_bad():
idx1 = pandas.Index([1,2,3])
idx2 = pandas.Index([4,5,6])
pandas.testing.assert_index_equal(idx1, idx2) and get no errors with So I suppose we need to:
|
NEP 29 says
Relevant pandas releases:
I suggest that we remove the And good sleuthing! |
It would be nice to get rid of the version complexity in our pandas asserts, so bumping to 1.1.0 is appealing. An alternative that doesn't require bumping all the way to pandas 1.1.0 right away: using either |
Describe the bug
Using the 36-min environment, I get different test results in the iotools tests depending on whether I include
test_conftest.py
in the test run.To Reproduce
Expected behavior
I expect to be able to run test modules individually and get the same results I'd get by running the entire test suite.
Versions:
pvlib.__version__
: master (0.9.1+2.g8d0f863
)pandas.__version__
: 0.22.0Additional context
The failures are mostly about whether dataframe columns and indexes are equal, so it might have something to do with the
assert_X_equal
definitions inconftest.py
? I also mentioned the psm3 failure here: #1374 (review)The text was updated successfully, but these errors were encountered: