Commits

Aleš Erjavec  committed 0e1509d

Skip neural network tests with numpy < 1.5

  • Participants
  • Parent commits 66dda07

Comments (0)

Files changed (1)

File Orange/testing/unit/tests/test_neural.py

 except ImportError:
     import unittest
 
+import numpy
+from distutils.version import StrictVersion
+
 from Orange.testing import testing
 from Orange.classification import neural
 
+np_version = StrictVersion(numpy.version.short_version).version
 
+
+@unittest.skipIf(np_version < (1, 5), "numpy >= 1.5 required")
 @testing.datasets_driven(datasets=["iris", "lenses", "monks-1"])
 class TestNeuralNetwork(testing.LearnerTestCase):
     LEARNER = neural.NeuralNetworkLearner