mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Relax pyroma for RC versions
This commit is contained in:
parent
6abc0d2f40
commit
81ebc21abf
|
@ -1,5 +1,7 @@
|
|||
from helper import unittest, PillowTestCase
|
||||
|
||||
from PIL import PILLOW_VERSION
|
||||
|
||||
try:
|
||||
import pyroma
|
||||
except ImportError:
|
||||
|
@ -23,8 +25,14 @@ class TestPyroma(PillowTestCase):
|
|||
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__':
|
||||
|
|
Loading…
Reference in New Issue
Block a user