Changeset 1882


Ignore:
Timestamp:
Oct 10, 2005, 10:29:19 AM (18 years ago)
Author:
duncan
Message:

to fix error checking test made the bad file name ... badder

Location:
inundation/pyvolution
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/least_squares.py

    r1872 r1882  
    109109        if display_errors:
    110110            print "Could not load bad file. ", e
    111         raise IOError  #Re-raise exception       
     111        raise IOError  #Re-raise exception 
    112112
    113113    point_coordinates = point_dict['pointlist']
     
    161161        if display_errors:
    162162            print "Could not write file. ", e
    163         #import sys; sys.exit()
    164163        raise IOError
    165164
  • inundation/pyvolution/test_least_squares.py

    r1873 r1882  
    15271527        fd.close()
    15281528
    1529         #FIXME (Ole): Is this a deliberately illegal filename to invoke the error?
    1530         #There might be platform issus (Unix/Windows)
    1531         #In any case, the call to itself does not raise an exception on cyclone - why?
    1532         mesh_output_file = "e:\new_triangle.tsh"       
    1533 
    1534         #FIXME: This does not raise an IO error on Linux but it does on Windows
    1535         #fit_to_mesh_file(mesh_file, point_file,
    1536         #                 mesh_output_file, display_errors = False)
    1537        
     1529        #This a deliberately illegal filename to invoke the error.
     1530        mesh_output_file = ".../\z\z:ya.tsh"       
     1531
    15381532        try:
    15391533            fit_to_mesh_file(mesh_file, point_file,
Note: See TracChangeset for help on using the changeset viewer.