From d7cf60ef0b554a458a20bf8803e376a1a45a1cf4 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Sat, 7 Dec 2013 11:45:37 -0600 Subject: [PATCH] Attempt to fix failing test on Python 3 buildbot --- skimage/io/tests/test_image.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skimage/io/tests/test_image.py b/skimage/io/tests/test_image.py index ef63ef95..b74c973e 100644 --- a/skimage/io/tests/test_image.py +++ b/skimage/io/tests/test_image.py @@ -18,7 +18,8 @@ def test_tags(): def test_repr_png_roundtrip(): - original_array = 255 * np.ones((3, 3), dtype=np.uint8) + # Use RGB-like shape since some backends convert grayscale to RGB + original_array = 255 * np.ones((5, 5, 3), dtype=np.uint8) image = Image(original_array) array = imread(BytesIO(image._repr_png_())) # Force output to ubyte range for plugin compatibility.