mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16: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 helper import unittest, PillowTestCase
|
||||||
|
|
||||||
|
from PIL import PILLOW_VERSION
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import pyroma
|
import pyroma
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
@ -23,6 +25,12 @@ class TestPyroma(PillowTestCase):
|
||||||
rating = pyroma.ratings.rate(data)
|
rating = pyroma.ratings.rate(data)
|
||||||
|
|
||||||
# Assert
|
# 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
|
# Should have a perfect score
|
||||||
self.assertEqual(rating, (10, []))
|
self.assertEqual(rating, (10, []))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user