- Timestamp:
- May 1, 2017 6:35:48 PM (8 years ago)
- 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)
- Location:
- test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sasdataloader/plugins/test_reader.py
raaf5e49 r0cc77d8 40 40 input_f = open(path,'r') 41 41 except : 42 raise RuntimeError , "ascii_reader: cannot open %s" % path42 raise RuntimeError("ascii_reader: cannot open %s" % path) 43 43 buff = input_f.read() 44 44 lines = buff.split('\n') … … 55 55 return output 56 56 else: 57 raise RuntimeError , "%s is not a file" % path57 raise RuntimeError("%s is not a file" % path) 58 58 return None 59 59 -
test/sasdataloader/test/utest_abs_reader.py
rc551bb3 r733cdcd 304 304 _found2 = True 305 305 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)) 308 308 309 309 # Detector … … 350 350 _found_term1 = True 351 351 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)) 354 354 355 355 def test_writer(self): -
test/sasrealspace/test/utest_oriented.py
raaf5e49 r0cc77d8 243 243 except: 244 244 print("Error", ana_val, sim_val, sim_val/ana_val) 245 raise sys.exc_type , sys.exc_value245 raise sys.exc_type(sys.exc_value) 246 246 247 247 class TestCoreShell(unittest.TestCase): … … 397 397 except: 398 398 print("Error", ana_val, sim_val, sim_val/ana_val) 399 raise sys.exc_type , sys.exc_value399 raise sys.exc_type(sys.exc_value) 400 400 401 401 def testRunXY_float(self): … … 408 408 self.assert_( math.fabs(sim_val/ana_val-1.0)<0.05 ) 409 409 except: 410 raise sys.exc_type(sys.exc_value) 410 411 print("Error", ana_val, sim_val, sim_val/ana_val) 411 raise sys.exc_type , sys.exc_value412 raise sys.exc_type(sys.exc_value) 412 413 413 414 def testRun_float(self): … … 421 422 except: 422 423 print("Error", ana_val, sim_val, sim_val/ana_val) 423 raise sys.exc_type , sys.exc_value424 raise sys.exc_type(sys.exc_value) 424 425 425 426 def testRun_list(self): … … 433 434 except: 434 435 print("Error", ana_val, sim_val, sim_val/ana_val) 435 raise sys.exc_type , sys.exc_value436 raise sys.exc_type(sys.exc_value) 436 437 437 438 class TestParamChange(unittest.TestCase):
Note: See TracChangeset
for help on using the changeset viewer.