Fix bug in test_idf_rational_save

A boolean wrapped in parentheses is still a boolean, not a tuple.
The comma makes this an actual tuple so it can be iterated on in
the for loop.
This commit is contained in:
Chris Hogan 2016-12-01 11:10:03 -06:00
parent 01392fcb2e
commit 711e95e361

View File

@ -47,7 +47,7 @@ class Test_IFDRational(PillowTestCase):
def test_ifd_rational_save(self): def test_ifd_rational_save(self):
methods = (True, False) methods = (True, False)
if 'libtiff_encoder' not in dir(Image.core): if 'libtiff_encoder' not in dir(Image.core):
methods = (False) methods = (False,)
for libtiff in methods: for libtiff in methods:
TiffImagePlugin.WRITE_LIBTIFF = libtiff TiffImagePlugin.WRITE_LIBTIFF = libtiff