Changeset 1863


Ignore:
Timestamp:
Oct 4, 2005, 6:48:24 PM (19 years ago)
Author:
ole
Message:

Fixed unit test for fit_to_mesh_file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/test_least_squares.py

    r1814 r1863  
    15221522        fd.close()
    15231523
    1524         mesh_output_file = "e:/new_triangle.tsh"
     1524        mesh_output_file = "e:\new_triangle.tsh" #Deliberately bad file
    15251525        try:
    15261526            fit_to_mesh_file(mesh_file, point_file,
    15271527                             mesh_output_file, display_errors = False)
    1528         except SystemExit:  pass
     1528        except SystemExit:
     1529            pass
    15291530        else:
    1530             self.failUnless(0 ==1,  'Bad file did not raise error!')       
     1531            #self.failUnless(0 ==1,  'Bad file did not raise error!')
     1532            #FIXME (Ole) Did not work on my computer: This one does:
     1533            raise 'Bad file did not raise error!'
     1534       
    15311535        #clean up
    15321536        os.remove(mesh_file)
Note: See TracChangeset for help on using the changeset viewer.