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 PIL import PILLOW_VERSION
try:
import pyroma
except ImportError:
@ -23,6 +25,12 @@ class TestPyroma(PillowTestCase):
rating = pyroma.ratings.rate(data)
# Assert
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, []))