Ignore:
Timestamp:
Mar 3, 2011, 6:04:03 PM (13 years ago)
Author:
wilsonr
Message:

Made changes described in ticket 359.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/test_generic_boundary_conditions.py

    r7814 r8124  
    3838            pass
    3939        else:
    40             raise 'Should have raised exception'
     40            raise Exception('Should have raised exception')
    4141
    4242
     
    4848            pass
    4949        else:
    50             raise 'Should have raised exception'
     50            raise Exception('Should have raised exception')
    5151
    5252    def test_dirichlet(self):
     
    9595            pass
    9696        else:
    97             raise 'Should have raised exception'
     97            raise Exception('Should have raised exception')
    9898
    9999        #Test time bdry, you need to provide a function
     
    103103            pass
    104104        else:
    105             raise 'Should have raised exception'
     105            raise Exception('Should have raised exception')
    106106
    107107
     
    161161            pass
    162162        else:
    163             raise 'Should have raised exception'
     163            raise Exception('Should have raised exception')
    164164
    165165        #Test time bdry, you need to provide a function
     
    169169            pass
    170170        else:
    171             raise 'Should have raised exception'
     171            raise Exception('Should have raised exception')
    172172
    173173
     
    233233            pass
    234234        else:
    235             raise 'Should have raised exception'
     235            raise Exception('Should have raised exception')
    236236
    237237        T = Transmissive_boundary(domain)
     
    424424            pass
    425425        else:
    426             raise 'Should have raised an exception'       
     426            raise Exception('Should have raised an exception')
    427427       
    428428        os.remove(filename + '.txt')
Note: See TracChangeset for help on using the changeset viewer.