mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Skip test if libtiff is not installed
This commit is contained in:
		
							parent
							
								
									cc0d70145b
								
							
						
					
					
						commit
						42588a6493
					
				| 
						 | 
					@ -4,7 +4,7 @@ import sys
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from .helper import unittest, PillowTestCase, hopper
 | 
					from .helper import unittest, PillowTestCase, hopper
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from PIL import Image, TiffImagePlugin
 | 
					from PIL import Image, TiffImagePlugin, features
 | 
				
			||||||
from PIL._util import py3
 | 
					from PIL._util import py3
 | 
				
			||||||
from PIL.TiffImagePlugin import X_RESOLUTION, Y_RESOLUTION, RESOLUTION_UNIT
 | 
					from PIL.TiffImagePlugin import X_RESOLUTION, Y_RESOLUTION, RESOLUTION_UNIT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -587,6 +587,7 @@ class TestFileTiff(PillowTestCase):
 | 
				
			||||||
            im.load()
 | 
					            im.load()
 | 
				
			||||||
            self.assertFalse(fp.closed)
 | 
					            self.assertFalse(fp.closed)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @unittest.skipUnless(features.check("libtiff"), "libtiff not installed")
 | 
				
			||||||
    def test_sampleformat_not_corrupted(self):
 | 
					    def test_sampleformat_not_corrupted(self):
 | 
				
			||||||
        # Assert that a TIFF image with SampleFormat=UINT tag is not corrupted
 | 
					        # Assert that a TIFF image with SampleFormat=UINT tag is not corrupted
 | 
				
			||||||
        # when saving to a new file.
 | 
					        # when saving to a new file.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user