mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Upgrade Python syntax with pyupgrade --py3-plus
This commit is contained in:
parent
cc63f66575
commit
b4f93cf140
|
@ -6,7 +6,7 @@ from .test_imageqt import PillowQtTestCase
|
|||
|
||||
class TestFromQImage(PillowQtTestCase, PillowTestCase):
|
||||
def setUp(self):
|
||||
super(TestFromQImage, self).setUp()
|
||||
super().setUp()
|
||||
self.files_to_test = [
|
||||
hopper(),
|
||||
Image.open("Tests/images/transparent.png"),
|
||||
|
|
|
@ -5,7 +5,7 @@ from .helper import PillowTestCase
|
|||
|
||||
class TestImageOpsUsm(PillowTestCase):
|
||||
def setUp(self):
|
||||
super(TestImageOpsUsm, self).setUp()
|
||||
super().setUp()
|
||||
self.im = Image.open("Tests/images/hopper.ppm")
|
||||
self.addCleanup(self.im.close)
|
||||
self.snakes = Image.open("Tests/images/color_snakes.png")
|
||||
|
|
Loading…
Reference in New Issue
Block a user