Changeset 4456


Ignore:
Timestamp:
May 16, 2007, 3:31:13 PM (17 years ago)
Author:
duncan
Message:

stop the warnings when testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/geospatial_data/test_geospatial_data.py

    r4349 r4456  
    1414from anuga.utilities.anuga_exceptions import ANUGAError
    1515# Ignore these warnings, since we still want to test .xya code.
    16 import warnings
     16import warnings 
    1717warnings.filterwarnings(action = 'ignore',
    1818                        message='.xya format is deprecated.  Please use .txt.',
     
    3333class Test_Geospatial_data(unittest.TestCase):
    3434    def setUp(self):
    35         pass
     35        import warnings
     36        warnings.filterwarnings(action = 'ignore',
     37                                message='.xya format is deprecated.  Please use .txt.',
     38                                category=DeprecationWarning)
     39       
     40        warnings.filterwarnings(action = 'ignore',
     41                                message='The text file values must be ab',
     42                                category=DeprecationWarning)
     43   
     44        warnings.filterwarnings(action = 'ignore',
     45                                message='Text file format is moving to comma se',
     46                                category=DeprecationWarning)
     47   
     48        warnings.filterwarnings(action = 'ignore',
     49                                message='Specifying delimiters will be removed.',
     50                                category=DeprecationWarning)
    3651
    3752    def tearDown(self):
     
    15811596           checking results are correct
    15821597        '''
    1583 
    15841598        # create files
    15851599        att_dict1 = {}
     
    21422156
    21432157    #suite = unittest.makeSuite(Test_Geospatial_data, 'test_write_csv_attributes_lat_long')
    2144     #suite = unittest.makeSuite(Test_Geospatial_data, 'verbose_test_load_pts_blocking')
     2158    #suite = unittest.makeSuite(Test_Geospatial_data, 'test_export_xya_file')
    21452159    suite = unittest.makeSuite(Test_Geospatial_data, 'test')
    21462160    runner = unittest.TextTestRunner()
Note: See TracChangeset for help on using the changeset viewer.