We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c44ae00 commit 1fa184bCopy full SHA for 1fa184b
1 file changed
lib/matplotlib/tests/test_image.py
@@ -1180,7 +1180,8 @@ def test_image_cursor_formatting():
1180
assert im.format_cursor_data(data) == '[0]'
1181
1182
data = np.nan
1183
- assert im.format_cursor_data(data) == '[nan]'
+ with np.errstate(invalid='ignore'):
1184
+ assert im.format_cursor_data(data) == '[nan]'
1185
1186
1187
@check_figures_equal(extensions=['png', 'pdf', 'svg'])
0 commit comments