mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 13:40:54 +03:00
commit
c0b08068c8
|
@ -67,7 +67,7 @@ class TestNumpy(PillowTestCase):
|
||||||
self.assert_image(to_image(numpy.uint8, 3), "RGB", (10, 10))
|
self.assert_image(to_image(numpy.uint8, 3), "RGB", (10, 10))
|
||||||
self.assert_image(to_image(numpy.uint8, 4), "RGBA", (10, 10))
|
self.assert_image(to_image(numpy.uint8, 4), "RGBA", (10, 10))
|
||||||
|
|
||||||
# based on an erring example at http://is.gd/6F0esS (which resolves to)
|
# based on an erring example at
|
||||||
# http://stackoverflow.com/questions/10854903/what-is-causing-dimension-dependent-attributeerror-in-pil-fromarray-function
|
# http://stackoverflow.com/questions/10854903/what-is-causing-dimension-dependent-attributeerror-in-pil-fromarray-function
|
||||||
def test_3d_array(self):
|
def test_3d_array(self):
|
||||||
a = numpy.ones((10, 10, 10), dtype=numpy.uint8)
|
a = numpy.ones((10, 10, 10), dtype=numpy.uint8)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user