diff --git a/Modules/Wrappers/SWIG/test/python/PythonNumpyTest.py b/Modules/Wrappers/SWIG/test/python/PythonNumpyTest.py
index 583b6aa2a2a55560b3f8f7f1d74f221929f97d43..7aee4e2a5d11fd8bfb2d2c2c0d99d30190a6d0cb 100644
--- a/Modules/Wrappers/SWIG/test/python/PythonNumpyTest.py
+++ b/Modules/Wrappers/SWIG/test/python/PythonNumpyTest.py
@@ -15,8 +15,8 @@ import otbApplication
 
 #from PIL import Image as PILImage
 
-inFile = sys.argv[1]
-prefix = sys.argv[2]
+inFile  = sys.argv[1]
+outFile = sys.argv[2]
 # pilimage = PILImage.open(inFile)
 # npimage = np.asarray(pilimage)
 # print npimage.dtype
@@ -60,5 +60,5 @@ Smoothing = otbApplication.Registry.CreateApplication("Smoothing")
 #take numpy output from Convert application and feed into Smoothing
 Smoothing.SetVectorImageFromNumpyArray("in", ConvertOut)
 Smoothing.SetParameterString("type", 'anidif')
-Smoothing.SetParameterString("out", argv[2])
+Smoothing.SetParameterString("out", outFile)
 Smoothing.ExecuteAndWriteOutput()