Changeset 425feff in sasview for test


Ignore:
Timestamp:
Feb 15, 2018 10:28:55 AM (7 years ago)
Author:
krzywon
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
Children:
2924532
Parents:
3ee0451
Message:

Move the deprecation check so it is always called, regardless of file loading success.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/sasdataloader/test/utest_generic_file_reader_class.py

    r3ee0451 r425feff  
    1010from sas.sascalc.dataloader.data_info import DataInfo, plottable_1D 
    1111from sas.sascalc.dataloader.loader import Loader 
     12from sas.sascalc.dataloader.loader_exceptions import NoKnownLoaderException 
    1213from sas.sascalc.dataloader.file_reader_base_class import FileReader 
    1314 
     
    2930 
    3031    def test_bad_file_path(self): 
    31         output = self.reader.read(self.bad_file) 
    32         self.assertEqual(output, []) 
     32        self.assertRaises(NoKnownLoaderException, self.reader.read, 
     33                          self.bad_file) 
    3334 
    3435    def test_good_file_path(self): 
Note: See TracChangeset for help on using the changeset viewer.