diff --git a/Modules/Wrappers/SWIG/test/python/Bug823.py b/Modules/Wrappers/SWIG/test/python/Bug823.py
index 96c9ed5894f37a4d3cee47fdd46f6887bc907917..35604ec1acecdad4f584f8daa4cd9a67f02b92e0 100644
--- a/Modules/Wrappers/SWIG/test/python/Bug823.py
+++ b/Modules/Wrappers/SWIG/test/python/Bug823.py
@@ -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)
diff --git a/Modules/Wrappers/SWIG/test/python/PythonConnectApplications.py b/Modules/Wrappers/SWIG/test/python/PythonConnectApplications.py
index 0e14f65f0c468ae350d1ee28d77e34818f2b9eb7..34e48dbb646767a82c3e12d816954d2fafbb5d8c 100644
--- a/Modules/Wrappers/SWIG/test/python/PythonConnectApplications.py
+++ b/Modules/Wrappers/SWIG/test/python/PythonConnectApplications.py
@@ -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()
diff --git a/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py b/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py
index d8aab348b0ec805bddd99ddd89b05e568df419a8..4cb17b6fe546d0c2ad2a97222d40e5eca83eae4b 100644
--- a/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py
+++ b/Modules/Wrappers/SWIG/test/python/PythonNewStyleParametersTest.py
@@ -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):