diff --git a/Tests/Functional/Python/PyExamples/CMakeLists.txt b/Tests/Functional/Python/PyExamples/CMakeLists.txt
index 615f00ac082e9071dbd5ac44c9e696852da98c8b..d7ca6675cf1ce5092063db38b89be494bd52a20d 100644
--- a/Tests/Functional/Python/PyExamples/CMakeLists.txt
+++ b/Tests/Functional/Python/PyExamples/CMakeLists.txt
@@ -14,7 +14,7 @@ file(GLOB fit_examples
 set(examples ${sim_examples} ${fit_examples})
 
 set(test_script ${output_dir}/check_functionality.py)
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/check_functionality.py ${test_script} @ONLY)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/check_functionality.in.py ${test_script} @ONLY)
 
 foreach(example_path ${examples})
     get_filename_component(example_name ${example_path} NAME_WE)
diff --git a/Tests/Functional/Python/PyExamples/check_functionality.py b/Tests/Functional/Python/PyExamples/check_functionality.in.py
similarity index 100%
rename from Tests/Functional/Python/PyExamples/check_functionality.py
rename to Tests/Functional/Python/PyExamples/check_functionality.in.py