mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-02 23:04:47 +08:00
Attempt to fix failing test on Python 3 buildbot
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user