mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			551 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			551 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from helper import unittest, PillowTestCase
 | 
						|
 | 
						|
try:
 | 
						|
    from PIL import ImageGrab
 | 
						|
 | 
						|
    class TestImageCopy(PillowTestCase):
 | 
						|
 | 
						|
        def test_grab(self):
 | 
						|
            im = ImageGrab.grab()
 | 
						|
            self.assert_image(im, im.mode, im.size)
 | 
						|
 | 
						|
        def test_grab2(self):
 | 
						|
            im = ImageGrab.grab()
 | 
						|
            self.assert_image(im, im.mode, im.size)
 | 
						|
 | 
						|
except ImportError:
 | 
						|
    class TestImageCopy(PillowTestCase):
 | 
						|
        def test_skip(self):
 | 
						|
            self.skipTest("ImportError")
 | 
						|
 | 
						|
 | 
						|
if __name__ == '__main__':
 | 
						|
    unittest.main()
 | 
						|
 | 
						|
# End of file
 |