Changeset 7863


Ignore:
Timestamp:
Jun 21, 2010, 8:53:24 AM (14 years ago)
Author:
hudson
Message:

Fixed Windows test fail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/file_conversion/test_csv2sts.py

    r7861 r7863  
    2727    """
    2828    def setUp(self):
     29        """ Setup for all tests. """
    2930        self.verbose = True
    3031        fid = open(testfile_csv, 'w')
     
    4748                 
    4849    def tearDown(self):
    49         pass     
    50  #       os.remove(testfile_csv)
     50        """ Cleanup for all tests. """     
     51        os.remove(testfile_csv)
    5152
    5253    def test_missing_input_file(self):
     
    100101                                        'stored data does not match'
    101102
    102         os.remove(sts_out)           
     103        if not sys.platform == 'win32':
     104            # Windows cannot delete the file for some reason.
     105            os.remove(sts_out)           
    103106
    104107if __name__ == "__main__":
Note: See TracChangeset for help on using the changeset viewer.