diff --git a/Tests/helper.py b/Tests/helper.py index 8556ed76a..92e059cae 100644 --- a/Tests/helper.py +++ b/Tests/helper.py @@ -265,7 +265,7 @@ class PillowLeakTestCase(PillowTestCase): # helpers -py3 = (sys.version_info >= (3, 0)) +py3 = sys.version_info.major >= 3 def fromstring(data):