Changeset 10257:bae97f7eef40 in orange


Ignore:
Timestamp:
02/16/12 10:48:38 (2 years ago)
Author:
ales_erjavec
Branch:
default
Message:

Fixed a couple of warnings in tests (use of old camlelCase parameters)

Location:
Orange/testing/unit/tests
Files:
3 edited

Legend:

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

    r9724 r10257  
    4040        self.assertEqual(centers[0].domain, table.domain) 
    4141         
    42      
    43     @unittest.expectedFailure 
    4442    def test_kmeans_fail(self): 
    4543        """ Test the reaction when centroids is larger then example table length 
    4644        """ 
    47         data = iter(testDatasets()).next() 
    48         Clustering(data, len(data) + 1) 
     45        data = Orange.data.Table("iris") 
     46        self.assertRaises(Exception, Clustering, (data, len(data) + 1)) 
    4947 
    5048 
  • Orange/testing/unit/tests/test_lasso.py

    r10038 r10257  
    99     
    1010    def setUp(self): 
    11         self.learner = lasso.LassoRegressionLearner(nBoot=2, nPerm=2) 
     11        self.learner = lasso.LassoRegressionLearner(n_boot=2, n_perm=2) 
    1212     
    1313    @test_on_data 
  • Orange/testing/unit/tests/test_linregression.py

    r10038 r10257  
    2020     
    2121    def setUp(self): 
    22         self.learner = linear.LinearRegressionLearner(ridgeLambda=2) 
     22        self.learner = linear.LinearRegressionLearner(ridge_lambda=2) 
    2323     
    2424    @test_on_data 
Note: See TracChangeset for help on using the changeset viewer.