Changeset 10768:1a4d7b4e8022 in orange


Ignore:
Timestamp:
04/05/12 17:29:58 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed load_tests for doctesting earth module.

File:
1 edited

Legend:

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

    r10666 r10768  
    101101        self.assertTrue(all(c1 == c2 for c1, c2 in \ 
    102102                            zip(predictor.class_vars, domain.class_vars))) 
    103          
    104 #@datasets_driven(datasets=testing.REGRESSION_DATASETS,) 
    105 #class TestScoreRSS(testing.MeasureAttributeTestCase): 
    106 #    def setUp(self): 
    107 #        from Orange.regression.earth import ScoreRSS 
    108 #        self.measure = ScoreRSS() 
    109103 
    110104def load_tests(loader, tests, ignore): 
    111105    import doctest 
    112     loader.addTests(doctest.DocTestSuite(earth, **earth._doctest_args())) 
    113     return loader 
     106    tests.addTests(doctest.DocTestSuite(earth)) 
     107    return tests 
    114108 
    115109if __name__ == "__main__": 
Note: See TracChangeset for help on using the changeset viewer.