Skip to content

Commit 52c7504

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 56c18a4 commit 52c7504

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
@@ -1981,7 +1981,7 @@ def test_mult_norm_call_types():
19811981
mn.vmin = (-2, -2)
19821982
mn.vmax = (2, 2)
19831983

1984-
vals = np.arange(6).reshape((3,2))
1984+
vals = np.arange(6, dtype='int64').reshape((3, 2))
19851985
target = np.ma.array([(0.5, 0.75),
19861986
(1., 1.25),
19871987
(1.5, 1.75)])

0 commit comments

Comments
 (0)