Ignore:
Timestamp:
Oct 17, 2006, 11:54:04 AM (18 years ago)
Author:
duncan
Message:

fixing test, ticket #99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/damage_modelling/test_inundation_damage.py

    r3689 r3807  
    144144
    145145        # FIXME (Ole): Sometimes this fails - is the file open or is it sometimes not created?
    146         os.remove(self.sww.filename)
     146        try:
     147            # Sometimes this fails - don't know why.
     148            # Seems to be that the file is not created, since after it
     149            # fails there are no sww files in the anuga directory
     150            os.remove(self.sww.filename)
     151        except OSError:
     152            pass
    147153        os.remove(self.csv_file)
    148154
Note: See TracChangeset for help on using the changeset viewer.