Skip to content

Commit 6992b98

Browse files
committed
Fix test_mult_norm_call_types on 32-bit systems
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.
1 parent f31a12b commit 6992b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,7 @@ def test_mult_norm_call_types():
20162016
[[0., 0.5, 1.],
20172017
[1, 3, 5]])
20182018
assert no_norm_out[0].dtype == np.dtype('float64')
2019-
assert no_norm_out[1].dtype == np.dtype('int64')
2019+
assert no_norm_out[1].dtype == vals.dtype
20202020

20212021
# test with NoNorm, structured array as input
20222022
mn_no_norm = mpl.colors.MultiNorm(['linear', mcolors.NoNorm()])

0 commit comments

Comments
 (0)