mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Sanity check :)
This commit is contained in:
parent
0cd1d9526d
commit
5a47b2bc84
|
@ -26,6 +26,18 @@ class TestJp2kLeak(PillowTestCase):
|
|||
im.load()
|
||||
im.close()
|
||||
|
||||
def self_sanity_check(self):
|
||||
# Arrange
|
||||
j2k = Image.open('Tests/images/rgb_trns_ycbc.j2k')
|
||||
jp2 = Image.open('Tests/images/rgb_trns_ycbc.jp2')
|
||||
|
||||
# Act
|
||||
j2k.load()
|
||||
jp2.load()
|
||||
|
||||
# Assert
|
||||
self.assertEqual(j2k.mode, 'RGBA')
|
||||
self.assertEqual(jp2.mode, 'RGBA')
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user