Changeset 10153:303d81515f7c in orange


Ignore:
Timestamp:
02/09/12 00:57:53 (2 years ago)
Author:
ales_erjavec
Branch:
default
Message:

Skip C45 tests if the C45 dynamic library not found.

File:
1 edited

Legend:

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

    r9679 r10153  
    77    def setUp(self): 
    88        self.learner = orange.C45Learner 
     9         
     10    @testing.test_on_data 
     11    def test_learner_on(self, dataset): 
     12        try: 
     13            orange.C45Learner() 
     14        except orange.KernelException: 
     15            raise unittest.SkipTest("C45 dll not found") 
     16        testing.LearnerTestCase.test_learner_on(self, dataset) 
    917        
     18    @testing.test_on_data 
     19    def test_pickling_on(self, dataset): 
     20        try: 
     21            orange.C45Learner() 
     22        except orange.KernelException: 
     23            raise unittest.SkipTest("C45 dll not found") 
     24        testing.LearnerTestCase.test_pickling_on(self, dataset) 
Note: See TracChangeset for help on using the changeset viewer.