From 7c7100679606149ae92f1edeec4eb4d3f41b8a5e Mon Sep 17 00:00:00 2001 From: Pierrick Koch Date: Thu, 28 Apr 2016 16:29:12 +0200 Subject: [PATCH] [Test] rm Image.fromarray LA mode test --- Tests/test_image_fromarray_la.py | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 Tests/test_image_fromarray_la.py diff --git a/Tests/test_image_fromarray_la.py b/Tests/test_image_fromarray_la.py deleted file mode 100644 index fa1e81e7c..000000000 --- a/Tests/test_image_fromarray_la.py +++ /dev/null @@ -1,32 +0,0 @@ -from helper import unittest, PillowTestCase - -from PIL import Image - -try: - import site - import numpy -except ImportError: - # Skip via setUp() - pass - -class TestImageFromArrayLA(PillowTestCase): - - def setUp(self): - try: - import site - import numpy - except ImportError: - self.skipTest("ImportError") - - def test_sanity(self): - ar1 = (numpy.random.random((40,40,2))*255).astype('uint8') - im1 = Image.fromarray(ar1) - arr = numpy.array(im1.getdata(), 'uint8') - ar2 = arr.reshape(im1.size[1], im1.size[0], arr.shape[1]) - self.assertTrue(numpy.array_equal(ar1, ar2)) - - -if __name__ == '__main__': - unittest.main() - -# End of file