diff --git a/tests/python_API_test.py b/tests/python_API_test.py
index ed3afe416ef5240aa35ad098f5a1483942aa986b..982e6abbc3d8d513515908fcb1426a2909c281b9 100755
--- a/tests/python_API_test.py
+++ b/tests/python_API_test.py
@@ -110,13 +110,14 @@ def test_run_system_with_custom_logging():
         max_evolution_time,
     )
 
+    output = binary_c_python_api.run_system(
+        argstring, custom_logging_func_memaddr=func_memaddr
+    )
+
     print("function: test_run_system_with_custom_logging")
     print("memory adress of custom logging functions:")
     print(textwrap.indent(str(func_memaddr), "\t"))
 
-    output = binary_c_python_api.run_system(
-        argstring, custom_logging_func_memaddr=func_memaddr
-    )
     print("binary_c output:")
     print(textwrap.indent(output, "\t"))