Skip to content

Commit bdd5606

Browse files
committed
Fix imports of Test functions on versions >1.12
1 parent c1913fa commit bdd5606

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/output_control.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Test.get_test_result generates code that uses the following so we must import them
2-
using Test: Returned, Threw, eval_test
2+
using Test: Returned, Threw
3+
4+
# depends on the version
5+
@static if VERSION v"1.12"
6+
using Test: eval_test
7+
else
8+
using Test: eval_test_comparison, eval_test_function
9+
end
310

411
"A cunning hack to carry extra message along with the original expression in a test"
512
struct ExprAndMsg

0 commit comments

Comments
 (0)