Changeset 10247:a57de34d6fd8 in orange


Ignore:
Timestamp:
02/15/12 13:36:58 (2 years ago)
Author:
ales_erjavec
Branch:
default
Message:

Fixed the use of a deprecated (message) exception class member.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/misc/testing.py

    r10180 r10247  
    503503        with member_set(self.distance_constructor, "ignore_class", True): 
    504504            mat = distance_matrix(dataset, self.distance_constructor) 
    505  
     505             
     506        self.assertIsInstance(mat, Orange.misc.SymMatrix) 
     507        self.assertEqual(mat.dim, len(dataset)) 
     508         
    506509        m = numpy.array(list(mat)) 
    507510        self.assertTrue((m >= 0.0).all()) 
     
    512515                    mat = distance_matrix(dataset, self.distance_constructor) 
    513516                except orange.KernelException, ex: 
    514                     if "not supported" in ex.message: 
     517                    if "not supported" in str(ex): 
    515518                        return 
    516519                    else: 
Note: See TracChangeset for help on using the changeset viewer.