mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-01 02:13:11 +03:00
Remove workaround for EOL Trusty/Precise
This commit is contained in:
parent
69905fbb70
commit
1c3da86ae7
|
@ -113,11 +113,6 @@ class TestNumpy(PillowTestCase):
|
||||||
img = Image.fromarray(arr * 255).convert('1')
|
img = Image.fromarray(arr * 255).convert('1')
|
||||||
self.assertEqual(img.mode, '1')
|
self.assertEqual(img.mode, '1')
|
||||||
arr_back = numpy.array(img)
|
arr_back = numpy.array(img)
|
||||||
# numpy 1.8 and earlier return this as a boolean. (trusty/precise)
|
|
||||||
if arr_back.dtype == numpy.bool:
|
|
||||||
arr_bool = numpy.array([[1, 0, 0, 1, 0], [0, 1, 0, 0, 0]], numpy.bool)
|
|
||||||
numpy.testing.assert_array_equal(arr_bool, arr_back)
|
|
||||||
else:
|
|
||||||
numpy.testing.assert_array_equal(arr, arr_back)
|
numpy.testing.assert_array_equal(arr, arr_back)
|
||||||
|
|
||||||
def test_save_tiff_uint16(self):
|
def test_save_tiff_uint16(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user