diff --git a/Testing/Code/Wrappers/Python/Bug441.py b/Testing/Code/Wrappers/Python/Bug441.py deleted file mode 100644 index 02a92c0b2011d51ab122207eef548b002f6093d9..0000000000000000000000000000000000000000 --- a/Testing/Code/Wrappers/Python/Bug441.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/python - -# Import the otb applications package -import otbApplication, sys - -# The following line creates an instance of the StereoSensorModelToElevationMap application -StereoSensorModelToElevationMap = otbApplication.Registry.CreateApplication("StereoSensorModelToElevationMap") - -# The following lines set all the application parameters: -StereoSensorModelToElevationMap.SetParameterString("ref", sys.argv[1]) -StereoSensorModelToElevationMap.SetParameterString("sec", sys.argv[2]) -StereoSensorModelToElevationMap.SetParameterString("out", sys.argv[3]) -StereoSensorModelToElevationMap.SetParameterString("elev.dem", "dem_wrong_path") -StereoSensorModelToElevationMap.SetParameterString("elev.geoid", "geoid_wrong_file") - -# This bug verifies that a proper exception is raised during ExecuteAndWriteOutput -try: - StereoSensorModelToElevationMap.ExecuteAndWriteOutput() -except: - 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 ) - diff --git a/Testing/Code/Wrappers/Python/CMakeLists.txt b/Testing/Code/Wrappers/Python/CMakeLists.txt index d8b9dc5cba1a3f53717c5c89be2d9f5ee4e91dc2..b793bfc0bb89c649abdd929e41e53cb83df741c3 100644 --- a/Testing/Code/Wrappers/Python/CMakeLists.txt +++ b/Testing/Code/Wrappers/Python/CMakeLists.txt @@ -32,10 +32,3 @@ add_test( NAME pyTvBug440 ${TEMP}/pyTvBug440Output.tif ) -add_test( NAME pyTvBug441 - COMMAND ${TEST_DRIVER} Execute - ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Bug441.py - ${OTB_DATA_ROOT}/Examples/sensor_stereo_left.tif - ${OTB_DATA_ROOT}/Examples/sensor_stereo_right.tif - ${TEMP}/pyTvBug441Output.tif - )