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

Skip to content

Commit ba76f9c

Browse files
committed
TST: ensure warnings are raised
1 parent 8ff23db commit ba76f9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/tests/test_image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ def test_imshow_endianess():
757757
@cleanup
758758
def test_imshow_no_warn_invalid():
759759
with warnings.catch_warnings(record=True) as warns:
760+
warnings.simplefilter("always")
760761
plt.imshow([[1, 2], [3, np.nan]])
761762
assert len(warns) == 0
762763

0 commit comments

Comments
 (0)