Relax pyroma for RC versions

This commit is contained in:
wiredfool 2014-09-29 13:14:32 -07:00
parent 6abc0d2f40
commit 81ebc21abf

View File

@ -1,5 +1,7 @@
from helper import unittest, PillowTestCase from helper import unittest, PillowTestCase
from PIL import PILLOW_VERSION
try: try:
import pyroma import pyroma
except ImportError: except ImportError:
@ -23,8 +25,14 @@ class TestPyroma(PillowTestCase):
rating = pyroma.ratings.rate(data) rating = pyroma.ratings.rate(data)
# Assert # Assert
# Should have a perfect score if 'rc' in PILLOW_VERSION:
self.assertEqual(rating, (10, [])) #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__': if __name__ == '__main__':