- Timestamp:
- Mar 3, 2011, 6:04:03 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/shallow_water_balanced/test_swb_basic.py
r7869 r8124 152 152 pass 153 153 else: 154 raise Exception , 'Should have raised an exception'154 raise Exception('Should have raised an exception') 155 155 156 156 # Individual flux tests … … 677 677 else: 678 678 msg = 'should have caught wrong time interval' 679 raise Exception , msg679 raise Exception(msg) 680 680 681 681 # Check correct time interval … … 768 768 else: 769 769 msg = 'Time interval should have raised an exception' 770 raise Exception , msg770 raise Exception(msg) 771 771 772 772 # Cleanup … … 1979 1979 except RuntimeError, e: 1980 1980 msg = 'Test failed: %s' % str(e) 1981 raise Exception , msg1981 raise Exception(msg) 1982 1982 # clean up in case raise fails 1983 1983 os.remove(meshname) … … 2033 2033 except AssertionError, e: 2034 2034 msg = 'Test failed: %s' % str(e) 2035 raise Exception , msg2035 raise Exception(msg) 2036 2036 # Cleanup in case this failed 2037 2037 os.remove(meshname) … … 2044 2044 except AssertionError, e: 2045 2045 msg = 'Test failed: %s' % str(e) 2046 raise Exception , msg2046 raise Exception(msg) 2047 2047 # Cleanup in case this failed 2048 2048 os.remove(meshname)
Note: See TracChangeset
for help on using the changeset viewer.