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