-
Notifications
You must be signed in to change notification settings - Fork 532
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
Improve error message for array_equal asserts. #4973
Improve error message for array_equal asserts. #4973
Conversation
I like this change generally, but we should look at the CI failures not just to fix them but to make sure we like the error formatting we're seeing. |
Good point. The problem is that right now this will only print nice errors if the repr is explicitly printed, i.e., to not show |
Totally fine to leave that for a followup. If you're going to do so, though, just be sure to create an associated issue. |
I'll try to address that immediately. |
And extend tests.
Not quite happy with the latest change yet, as it encourages |
- Always concatenate split lines for __repr__ strings. - Use brackets instead of hyphens and use whitespace-delimitation to not imply that the representation is eval'able.
@wphicks This would be ready for another review. I have adjusted the error message slightly and also added a Edit: Clarifying |
@gpucibot merge |
Authors: - Carl Simon Adorf (https://github.com/csadorf) Approvers: - William Hicks (https://github.com/wphicks) URL: rapidsai#4973
Authors: - Carl Simon Adorf (https://github.com/csadorf) Approvers: - William Hicks (https://github.com/wphicks) URL: rapidsai#4973
Authors: - Carl Simon Adorf (https://github.com/csadorf) Approvers: - William Hicks (https://github.com/wphicks) URL: rapidsai#4973
No description provided.