mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Tests that faill on appveyor CI, but pass on a real machine
This commit is contained in:
parent
07eea7be52
commit
0347bcc91d
|
@ -233,6 +233,8 @@ def netpbm_available():
|
|||
def imagemagick_available():
|
||||
return IMCONVERT and command_succeeds([IMCONVERT, '-version'])
|
||||
|
||||
def onAppveyor():
|
||||
return 'APPVEYOR' in os.environ
|
||||
|
||||
if sys.platform == 'win32':
|
||||
IMCONVERT = os.environ.get('MAGICK_HOME', '')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from helper import unittest, PillowTestCase
|
||||
from helper import unittest, PillowTestCase, onAppveyor
|
||||
|
||||
import sys
|
||||
|
||||
|
@ -7,10 +7,12 @@ try:
|
|||
|
||||
class TestImageGrab(PillowTestCase):
|
||||
|
||||
@unittest.skipIf(onAppveyor())
|
||||
def test_grab(self):
|
||||
im = ImageGrab.grab()
|
||||
self.assert_image(im, im.mode, im.size)
|
||||
|
||||
@unittest.skipIf(onAppveyor())
|
||||
def test_grab2(self):
|
||||
im = ImageGrab.grab()
|
||||
self.assert_image(im, im.mode, im.size)
|
||||
|
|
Loading…
Reference in New Issue
Block a user