Changeset 7847


Ignore:
Timestamp:
Jun 16, 2010, 12:22:16 PM (14 years ago)
Author:
hudson
Message:

Added correct module imports for unit tests.

Location:
trunk/anuga_core/source/anuga
Files:
2 edited

Legend:

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

    r7814 r7847  
    33import tempfile
    44import os
     5import sys
    56from Scientific.IO.NetCDF import NetCDFFile
    67
     
    19521953        #assert allclose(domain_fbound.quantities['stage'].vertex_values[6], 2)
    19531954
    1954         try:
     1955        if not sys.platform == 'win32':
    19551956            os.remove(sts_file+'.sts')
    1956         except IOError:
    1957             # Windoze can't remove this file for some reason
    1958             pass
    19591957       
    19601958        os.remove(meshname)
  • trunk/anuga_core/source/anuga/utilities/test_file_utils.py

    r7821 r7847  
    33import os
    44import shutil
     5import sys
    56
    67from anuga.utilities.file_utils import copy_code_files, get_all_swwfiles
     
    142143       
    143144        # remove temp files
    144         os.remove('test1.sww')
    145         os.remove('test2.sww')
    146         os.remove(outfile)     
     145        if not sys.platform == 'win32':         
     146                        os.remove('test1.sww')
     147                        os.remove('test2.sww')
     148                        os.remove(outfile)     
    147149       
    148150       
Note: See TracChangeset for help on using the changeset viewer.