From 0aafbaf78bbc419e7c7a1b6eceeb9893e0cc4381 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Sun, 31 Jan 2016 08:37:49 -0600 Subject: [PATCH] Add another note about the new warning --- skimage/io/tests/test_mpl_imshow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/skimage/io/tests/test_mpl_imshow.py b/skimage/io/tests/test_mpl_imshow.py index 6ebf800b..76422580 100644 --- a/skimage/io/tests/test_mpl_imshow.py +++ b/skimage/io/tests/test_mpl_imshow.py @@ -81,6 +81,7 @@ def test_outside_standard_range(): # Warning raised by matplotlib on Windows: # "The CObject type is marked Pending Deprecation in Python 2.7. # Please use capsule objects instead." + # Ref: https://docs.python.org/2/c-api/cobject.html with expected_warnings(["out of standard range|CObject type is marked"]): ax_im = io.imshow(im_hi) assert ax_im.get_clim() == (im_hi.min(), im_hi.max()) @@ -93,6 +94,7 @@ def test_nonstandard_type(): # Warning raised by matplotlib on Windows: # "The CObject type is marked Pending Deprecation in Python 2.7. # Please use capsule objects instead." + # Ref: https://docs.python.org/2/c-api/cobject.html with expected_warnings(["Low image dynamic range|CObject type is marked"]): ax_im = io.imshow(im64) assert ax_im.get_clim() == (im64.min(), im64.max())