Skip to content

Commit

Permalink
Merge pull request #2771 from cgohlke/patch-1
Browse files Browse the repository at this point in the history
Fix ValueError: invalid version number '1.0.0rc1'
  • Loading branch information
wiredfool committed Oct 1, 2017
2 parents 2816987 + 3ad73ff commit 74d4940
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/test_scipy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from helper import unittest, PillowTestCase
from distutils.version import StrictVersion
from distutils.version import LooseVersion
try:
import numpy as np
from numpy.testing import assert_equal
Expand Down Expand Up @@ -31,7 +31,7 @@ def test_imresize(self):
# this test fails prior to scipy 0.14.0b1
# https://github.com/scipy/scipy/commit/855ff1fff805fb91840cf36b7082d18565fc8352
@unittest.skipIf(HAS_SCIPY and
(StrictVersion(scipy.__version__) < StrictVersion('0.14.0')),
(LooseVersion(scipy.__version__) < LooseVersion('0.14.0')),
"Test fails on scipy < 0.14.0")
def test_imresize4(self):
im = np.array([[1, 2],
Expand Down

0 comments on commit 74d4940

Please sign in to comment.