Skip to content
Snippets Groups Projects
Commit d6cd7bd8 authored by Julien Malik's avatar Julien Malik
Browse files

TEST: change test for #441 : we do want exceptions in Python

parent 780c88e9
Branches
Tags
No related merge requests found
......@@ -14,11 +14,13 @@ StereoSensorModelToElevationMap.SetParameterString("elev", "dem")
StereoSensorModelToElevationMap.SetParameterString("elev.dem.path", "dem_wrong_path")
StereoSensorModelToElevationMap.SetParameterString("elev.dem.geoid", "geoid_wrong_file")
# This bug verifies that no exception is raised during ExecuteAndWriteOutput
# It does **NOT** check that the execution of the application succeeds
# This bug verifies that a proper exception is raised during ExecuteAndWriteOutput
try:
StereoSensorModelToElevationMap.ExecuteAndWriteOutput()
except:
raise
print "Catching exception : this is the expected behavior - TEST PASS"
sys.exit( 0 )
print "Should have raised an exception, but did not - TEST FAIL"
sys.exit( 1 )
sys.exit( 0 )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment