mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 15:37:55 +03:00 
			
		
		
		
	
						commit
						5f31fe8b38
					
				|  | @ -232,7 +232,7 @@ class TestCffi(AccessTest): | ||||||
|             # Do not save references to the image, only to the access object |             # Do not save references to the image, only to the access object | ||||||
|             px = Image.new('L', (size, 1), 0).load() |             px = Image.new('L', (size, 1), 0).load() | ||||||
|             for i in range(size): |             for i in range(size): | ||||||
|                 # pixels can contain garbarge if image is released |                 # pixels can contain garbage if image is released | ||||||
|                 self.assertEqual(px[i, 0], 0) |                 self.assertEqual(px[i, 0], 0) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -28,7 +28,7 @@ class TestImageArray(PillowTestCase): | ||||||
|         def test(mode): |         def test(mode): | ||||||
|             i = im.convert(mode) |             i = im.convert(mode) | ||||||
|             a = i.__array_interface__ |             a = i.__array_interface__ | ||||||
|             a["strides"] = 1  # pretend it's non-contigous |             a["strides"] = 1  # pretend it's non-contiguous | ||||||
|             i.__array_interface__ = a  # patch in new version of attribute |             i.__array_interface__ = a  # patch in new version of attribute | ||||||
|             out = Image.fromarray(i) |             out = Image.fromarray(i) | ||||||
|             return out.mode, out.size, list(i.getdata()) == list(out.getdata()) |             return out.mode, out.size, list(i.getdata()) == list(out.getdata()) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user