Changeset 5096


Ignore:
Timestamp:
Mar 3, 2008, 10:39:58 AM (16 years ago)
Author:
duncan
Message:

bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/test_data_audit.py

    r5039 r5096  
    9090            os.remove(tmp_name)       
    9191        except:
    92             # FIXME(Ole) This doesn't work on Windows for some reason
    93             pass
     92            # FIXME(DSG) Windows seems to have a problem deleting this file
     93            # This is a work-a-round. It doesn't fix the root problem
     94            # It does delete the file though.
     95            fid = open(tmp_name, 'a')       
     96            string = 'Example data file'
     97            fid.write(string)
     98            fid.close()
     99            os.remove(tmp_name)
    94100       
    95101
     
    164170            os.remove(tmp_name)       
    165171        except:
    166             # FIXME(Ole)QThis doesn't work on Windows for some reason
    167             pass       
     172            # FIXME(DSG) Windows seems to have a problem deleting this file
     173            # This is a work-a-round. It doesn't fix the root problem
     174            # It does delete the file though.
     175            fid = open(tmp_name, 'a')       
     176            string = 'Example data file'
     177            fid.write(string)
     178            fid.close()
     179            os.remove(tmp_name)
    168180
    169181
Note: See TracChangeset for help on using the changeset viewer.