Ignore:
Timestamp:
Jan 27, 2015, 9:46:46 AM (10 years ago)
Author:
steve
Message:

deal with problem on windows with trying to delete files which should be closed

File:
1 edited

Legend:

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

    r9491 r9510  
    105105        #assert num.allclose(x,)
    106106
    107 
    108         os.remove(root + '.dem')
    109         os.remove(root + '.asc')
    110         os.remove(root + '.prj')
    111 
     107        try:
     108            os.remove(root + '.dem')
     109            os.remove(root + '.asc')
     110            os.remove(root + '.prj')
     111        except:
     112            # Expect error on windows
     113            pass
    112114
    113115
Note: See TracChangeset for help on using the changeset viewer.