fix SystemError: new style getargs format but argument is not a tuple

This commit is contained in:
Fahad Al-Saidi 2016-12-15 11:20:36 +04:00
parent 40dc3ba32e
commit 5d58335f52

View File

@ -59,7 +59,7 @@ class TestImagePath(PillowTestCase):
if hasattr(arr, 'tobytes'):
p = ImagePath.Path(arr.tobytes())
else:
p = ImagePath.Path(arr.tostring())
p = ImagePath.Path(list(arr.tostring()))
self.assertEqual(list(p), [(0.0, 1.0)])
def test_overflow_segfault(self):