-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Fix test_mult_norm_call_types on 32-bit systems #30629
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
lib/matplotlib/tests/test_colors.py
Outdated
| mn.vmax = (2, 2) | ||
|
|
||
| vals = np.arange(6).reshape((3,2)) | ||
| vals = np.arange(6, dtype='int64').reshape((3, 2)) |
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 assume what fails is the asserion below
assert no_norm_out[1].dtype == np.dtype('int64')
If so, wouldn't it be slightly better to leave vals as is and change the assert to
assert no_norm_out[1].dtype == vals.dtype
?
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.
Yes, fair, that would work as well.
In that case, the default int is also 32-bit, so the test will fail to be equal to `int64`. So instead of the implicit type, use an explicit one.
52c7504 to
6992b98
Compare
In that case, the default int is also 32-bit, so the test will fail to be equal to `int64`. This is similar to matplotlib#30629.
In that case, the default int is also 32-bit, so the test will fail to be equal to `int64`. This is similar to matplotlib#30629.
In that case, the default int is also 32-bit, so the test will fail to be equal to `int64`. This is similar to matplotlib#30629.
In that case, the default int is also 32-bit, so the test will fail to be equal to `int64`. This is similar to matplotlib#30629.
In that case, the default int is also 32-bit, so the test will fail to be equal to `int64`. This is similar to #30629.
PR summary
In that case, the default int is also 32-bit, so the test will fail to be equal to
int64. So instead of the implicit type, use an explicit one.PR checklist