diff --git a/Tests/Examples/CMakeLists.txt b/Tests/Examples/CMakeLists.txt
index 7f232f62f0c0ec57adde8346271e0cc6953ec87a..83b7b26510d42288cbb9caa7ff1fe66d923b0558 100644
--- a/Tests/Examples/CMakeLists.txt
+++ b/Tests/Examples/CMakeLists.txt
@@ -150,8 +150,10 @@ run_example(fit/specular/Specular1Par)
 run_example(fq/Sphere)
 
 test_example(offspec/Offspec1 2e-10)
-test_example(offspec/OffspecLambda 2e-10) # issue #711
-test_example(offspec/OffspecResolved 2e-10) # issue #711
+if (Python3_VERSION_MINOR GREATER 8)
+    test_example(offspec/OffspecLambda 2e-10) # issue #711
+    test_example(offspec/OffspecResolved 2e-10) # issue #711
+endif()
 
 test_example(scatter2d/ApproximationDA 2e-10)
 test_example(scatter2d/ApproximationLMA 2e-10)