🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@QuLogic
Copy link
Member

@QuLogic QuLogic commented Oct 3, 2025

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

@QuLogic QuLogic added this to the v3.11.0 milestone Oct 3, 2025
mn.vmax = (2, 2)

vals = np.arange(6).reshape((3,2))
vals = np.arange(6, dtype='int64').reshape((3, 2))
Copy link
Member

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

?

Copy link
Member Author

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.
@QuLogic QuLogic force-pushed the fix-color-test-32bit branch from 52c7504 to 6992b98 Compare October 4, 2025 06:11
@oscargus oscargus merged commit f380a44 into matplotlib:main Oct 6, 2025
40 checks passed
@QuLogic QuLogic deleted the fix-color-test-32bit branch October 21, 2025 00:13
QuLogic added a commit to QuLogic/matplotlib that referenced this pull request Dec 12, 2025
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.
QuLogic added a commit to QuLogic/matplotlib that referenced this pull request Dec 12, 2025
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.
QuLogic added a commit to QuLogic/matplotlib that referenced this pull request Dec 12, 2025
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.
QuLogic added a commit to QuLogic/matplotlib that referenced this pull request Dec 13, 2025
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants