Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fd07fd1

Browse files
committed
FIX: Removing full_invalid warning check
The numpy UserWarning is no longer raised, so remove that expectation from the test. Keep the smoke test to make sure no new errors/warnings come along later.
1 parent 2c59935 commit fd07fd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -997,8 +997,8 @@ def test_imshow_bool():
997997
def test_full_invalid():
998998
fig, ax = plt.subplots()
999999
ax.imshow(np.full((10, 10), np.nan))
1000-
with pytest.warns(UserWarning):
1001-
fig.canvas.draw()
1000+
1001+
fig.canvas.draw()
10021002

10031003

10041004
@pytest.mark.parametrize("fmt,counted",

0 commit comments

Comments
 (0)