diff --git a/ament_cmake_pytest/cmake/ament_add_pytest_test.cmake b/ament_cmake_pytest/cmake/ament_add_pytest_test.cmake index 7afe858a..06abfbd1 100644 --- a/ament_cmake_pytest/cmake/ament_add_pytest_test.cmake +++ b/ament_cmake_pytest/cmake/ament_add_pytest_test.cmake @@ -99,6 +99,8 @@ function(ament_add_pytest_test testname path) "--junit-prefix=${PROJECT_NAME}" ) + set(ARG_ENV PYTHONDONTWRITEBYTECODE=1 ${ARG_ENV}) + if(ARG_NOCAPTURE) # disable output capturing list(APPEND cmd "-s")