Ignore:
Timestamp:
Mar 4, 2011, 2:34:28 PM (14 years ago)
Author:
wilsonr
Message:

Changes to address ticket 360.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/pmesh/test_meshquad.py

    r7861 r8125  
    77from anuga.abstract_2d_finite_volumes.general_mesh import General_mesh as Mesh
    88
    9 import types, sys
     9import sys
    1010
    1111#-------------------------------------------------------------
     
    4444        # test a point that falls within a triangle
    4545        result = Q.search([10, 10])
    46         assert type(result) in [types.ListType,types.TupleType],\
    47                             'should be a list'
     46        assert isinstance(result, (list, tuple)), 'should be a list'
    4847                           
    4948        self.assertEqual(result[0][0][0], 1)
Note: See TracChangeset for help on using the changeset viewer.