Skip to content

Commit

Permalink
Relax pyroma for RC versions
Browse files Browse the repository at this point in the history
  • Loading branch information
wiredfool committed Sep 29, 2014
1 parent 6abc0d2 commit 81ebc21
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Tests/test_pyroma.py
@@ -1,5 +1,7 @@
from helper import unittest, PillowTestCase

from PIL import PILLOW_VERSION

try:
import pyroma
except ImportError:
Expand All @@ -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__':
Expand Down

0 comments on commit 81ebc21

Please sign in to comment.