From 3ad73ff447934fa64146684d1a0740774472a01f Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Sat, 30 Sep 2017 22:15:28 -0700 Subject: [PATCH] Fix ValueError: invalid version number '1.0.0rc1' --- Tests/test_scipy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/test_scipy.py b/Tests/test_scipy.py index 1f4f016d1..18c4403a0 100644 --- a/Tests/test_scipy.py +++ b/Tests/test_scipy.py @@ -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 @@ -31,7 +31,7 @@ class Test_scipy_resize(PillowTestCase): # 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],