diff --git a/Tests/test_pyroma.py b/Tests/test_pyroma.py index 45d62b82fd5..59aa3810e40 100644 --- a/Tests/test_pyroma.py +++ b/Tests/test_pyroma.py @@ -1,5 +1,7 @@ from helper import unittest, PillowTestCase +from PIL import PILLOW_VERSION + try: import pyroma except ImportError: @@ -23,8 +25,14 @@ def test_pyroma(self): rating = pyroma.ratings.rate(data) # Assert - # Should have a perfect score - self.assertEqual(rating, (10, [])) + if 'rc' in PILLOW_VERSION: + #Pyroma needs to chill about RC versions and not kill all our tests. + self.assertEqual(rating, (9, + ['The packages version number does not comply with PEP-386.'])) + + else: + # Should have a perfect score + self.assertEqual(rating, (10, [])) if __name__ == '__main__':