Changeset df29bc2 in sasview for test


Ignore:
Timestamp:
May 1, 2017 6:35:48 PM (8 years ago)
Author:
GitHub <noreply@…>
Parents:
658dd57 (diff), 733cdcd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Andrew Nelson <andyfaff@…> (05/01/17 18:35:48)
git-committer:
GitHub <noreply@…> (05/01/17 18:35:48)
Message:

Merge 733cdcd4ded452b8ad3afdec13db1f91a354aba4 into 658dd573a2872185ffe7439d96b51458fb88a94d

Location:
test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • test/sasdataloader/plugins/test_reader.py

    raaf5e49 r0cc77d8  
    4040                    input_f =  open(path,'r') 
    4141                except : 
    42                     raise  RuntimeError, "ascii_reader: cannot open %s" % path 
     42                    raise  RuntimeError("ascii_reader: cannot open %s" % path) 
    4343                buff = input_f.read() 
    4444                lines = buff.split('\n') 
     
    5555                return output 
    5656        else: 
    57             raise RuntimeError, "%s is not a file" % path 
     57            raise RuntimeError("%s is not a file" % path) 
    5858        return None 
    5959     
  • test/sasdataloader/test/utest_abs_reader.py

    rc551bb3 r733cdcd  
    304304                _found2 = True 
    305305                 
    306         if _found1 == False or _found2 == False: 
    307             raise RuntimeError, "Could not find all data %s %s" % (_found1, _found2)  
     306        if not _found1 or not _found2: 
     307            raise RuntimeError("Could not find all data %s %s" % (_found1, _found2))  
    308308             
    309309        # Detector 
     
    350350                    _found_term1 = True 
    351351                     
    352         if _found_term1 == False or _found_term2 == False: 
    353             raise RuntimeError, "Could not find all process terms %s %s" % (_found_term1, _found_term2) 
     352        if not _found_term1 or not _found_term2: 
     353            raise RuntimeError("Could not find all process terms %s %s" % (_found_term1, _found_term2))  
    354354         
    355355    def test_writer(self): 
  • test/sasrealspace/test/utest_oriented.py

    raaf5e49 r0cc77d8  
    243243        except: 
    244244            print("Error", ana_val, sim_val, sim_val/ana_val) 
    245             raise sys.exc_type, sys.exc_value 
     245            raise sys.exc_type(sys.exc_value) 
    246246 
    247247class TestCoreShell(unittest.TestCase): 
     
    397397        except: 
    398398            print("Error", ana_val, sim_val, sim_val/ana_val) 
    399             raise sys.exc_type, sys.exc_value 
     399            raise sys.exc_type(sys.exc_value) 
    400400 
    401401    def testRunXY_float(self): 
     
    408408            self.assert_( math.fabs(sim_val/ana_val-1.0)<0.05 ) 
    409409        except: 
     410            raise sys.exc_type(sys.exc_value) 
    410411            print("Error", ana_val, sim_val, sim_val/ana_val) 
    411             raise sys.exc_type, sys.exc_value 
     412            raise sys.exc_type(sys.exc_value) 
    412413 
    413414    def testRun_float(self): 
     
    421422        except: 
    422423            print("Error", ana_val, sim_val, sim_val/ana_val) 
    423             raise sys.exc_type, sys.exc_value 
     424            raise sys.exc_type(sys.exc_value) 
    424425 
    425426    def testRun_list(self): 
     
    433434        except: 
    434435            print("Error", ana_val, sim_val, sim_val/ana_val) 
    435             raise sys.exc_type, sys.exc_value 
     436            raise sys.exc_type(sys.exc_value) 
    436437 
    437438class TestParamChange(unittest.TestCase): 
Note: See TracChangeset for help on using the changeset viewer.