From bdd5606c59296c45d804732ca2183ecafc9e0b8a Mon Sep 17 00:00:00 2001 From: Lukas Devos Date: Thu, 3 Jul 2025 13:54:58 +0200 Subject: [PATCH] Fix imports of Test functions on versions >1.12 --- src/output_control.jl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/output_control.jl b/src/output_control.jl index d9eba570..59645d50 100644 --- a/src/output_control.jl +++ b/src/output_control.jl @@ -1,5 +1,12 @@ # Test.get_test_result generates code that uses the following so we must import them -using Test: Returned, Threw, eval_test +using Test: Returned, Threw + +# depends on the version +@static if VERSION ≤ v"1.12" + using Test: eval_test +else + using Test: eval_test_comparison, eval_test_function +end "A cunning hack to carry extra message along with the original expression in a test" struct ExprAndMsg