mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Function rename
This commit is contained in:
parent
02ca00d493
commit
1086ba9e6e
|
@ -233,7 +233,7 @@ def netpbm_available():
|
||||||
def imagemagick_available():
|
def imagemagick_available():
|
||||||
return IMCONVERT and command_succeeds([IMCONVERT, '-version'])
|
return IMCONVERT and command_succeeds([IMCONVERT, '-version'])
|
||||||
|
|
||||||
def onAppveyor():
|
def on_appveyor():
|
||||||
return 'APPVEYOR' in os.environ
|
return 'APPVEYOR' in os.environ
|
||||||
|
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
|
|
|
@ -7,12 +7,12 @@ try:
|
||||||
|
|
||||||
class TestImageGrab(PillowTestCase):
|
class TestImageGrab(PillowTestCase):
|
||||||
|
|
||||||
@unittest.skipIf(onAppveyor(), "Test fails on appveyor")
|
@unittest.skipIf(on_appveyor(), "Test fails on appveyor")
|
||||||
def test_grab(self):
|
def test_grab(self):
|
||||||
im = ImageGrab.grab()
|
im = ImageGrab.grab()
|
||||||
self.assert_image(im, im.mode, im.size)
|
self.assert_image(im, im.mode, im.size)
|
||||||
|
|
||||||
@unittest.skipIf(onAppveyor(), "Test fails on appveyor")
|
@unittest.skipIf(on_appveyor(), "Test fails on appveyor")
|
||||||
def test_grab2(self):
|
def test_grab2(self):
|
||||||
im = ImageGrab.grab()
|
im = ImageGrab.grab()
|
||||||
self.assert_image(im, im.mode, im.size)
|
self.assert_image(im, im.mode, im.size)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user