Skip to content
Snippets Groups Projects
Commit 32c53bd7 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

TEST: compatibility with python 3

parent c5e303bc
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ def test(otb, argv):
app = otb.Registry.CreateApplication('Rasterization')
try:
app.GetParameterInt('szx')
except RuntimeError, e:
except RuntimeError as e:
print( "Exception message : " + e.args[0] )
if e.args[0].startswith("boost::bad_any_cast"):
exit(1)
......
......@@ -42,7 +42,7 @@ def test(otb, argv):
app4.AddImageToParameterInputImageList("il",app2.GetParameterOutputImage("out"));
app4.AddImageToParameterInputImageList("il",app3.GetParameterOutputImage("out"));
app4.AddParameterStringList("il",argv[1])
app4.AddParameterStringList("il",argv[1])
app4.OUT = argv[2]
app4.ExecuteAndWriteOutput()
......@@ -22,7 +22,7 @@
# Example on the use of otb "pythonization"
#
def cm_assert(a,b):
print "debug print before assert check: '%s'== '%s'" %(a, b)
print("debug print before assert check: '%s'== '%s'" %(a, b))
assert a == b
def test(otb, argv):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment