Changeset 11756:0e1509d4c059 in orange


Ignore:
Timestamp:
11/06/13 13:55:01 (6 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Skip neural network tests with numpy < 1.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/testing/unit/tests/test_neural.py

    r11750 r11756  
    44    import unittest 
    55 
     6import numpy 
     7from distutils.version import StrictVersion 
     8 
    69from Orange.testing import testing 
    710from Orange.classification import neural 
    811 
     12np_version = StrictVersion(numpy.version.short_version).version 
    913 
     14 
     15@unittest.skipIf(np_version < (1, 5), "numpy >= 1.5 required") 
    1016@testing.datasets_driven(datasets=["iris", "lenses", "monks-1"]) 
    1117class TestNeuralNetwork(testing.LearnerTestCase): 
Note: See TracChangeset for help on using the changeset viewer.