Changeset 1872
- Timestamp:
- Oct 6, 2005, 10:39:24 AM (19 years ago)
- Location:
- inundation/pyvolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/least_squares.py
r1871 r1872 109 109 if display_errors: 110 110 print "Could not load bad file. ", e 111 import sys; sys.exit()111 raise IOError #Re-raise exception 112 112 113 113 point_coordinates = point_dict['pointlist'] -
inundation/pyvolution/test_least_squares.py
r1869 r1872 1463 1463 fit_to_mesh_file(mesh_file, point_file, 1464 1464 mesh_output_file, display_errors = False) 1465 except SystemExit: pass 1465 except IOError: 1466 pass 1466 1467 else: 1467 self.failUnless(0 ==1, 'Bad file did not raise error!') 1468 #self.failUnless(0 ==1, 'Bad file did not raise error!') 1469 raise 'Bad file did not raise error!' 1470 1468 1471 #clean up 1469 1472 os.remove(mesh_file) … … 1527 1530 #There might be platform issus (Unix/Windows) 1528 1531 #In any case, the call itself does not raise an exception on cyclone - why? 1529 mesh_output_file = "e:\new_triangle.tsh" 1532 mesh_output_file = "e:\new_triangle.tsh" 1533 fit_to_mesh_file(mesh_file, point_file, 1534 mesh_output_file, display_errors = False) 1530 1535 try: 1531 1536 fit_to_mesh_file(mesh_file, point_file,
Note: See TracChangeset
for help on using the changeset viewer.