-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: Exception in NDFrame._maybe_update_cacher #29066
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
Conversation
except Exception: | ||
pass | ||
assert ref.ndim == self.ndim, (ref.ndim, self.ndim) | ||
except AssertionError: |
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.
does this raise in the test suite?
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.
moved the first assertion to the else
block to clarify that it is not the assertion that is raising.
There are places in the test suite where the ref._maybe_cache_changed
call raises an AssertionError
because of a shape mismatch, but AFAICT checking for that situation and only calling it in non-raising cases breaks several tests
thanks @jbrockmendel |
Only need to catch AssertionError