Skip to content

Commit bdf69d5

Browse files
committed
Fix UndefVarError in @test_msg
1 parent d702bc5 commit bdf69d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/output_control.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Test.get_test_result generates code that uses the following so we must import them
22
using Test: Returned, Threw, eval_test
33

4+
@static if VERSION >= v"1.13.0-DEV.300"
5+
# https://github.com/JuliaLang/julia/commit/d934b032ea5bf63b353371ad285605128c735873
6+
# used by `Test.do_test` in `macro test_msg`
7+
using Test: eval_test_comparison
8+
end
9+
410
"A cunning hack to carry extra message along with the original expression in a test"
511
struct ExprAndMsg
612
ex

0 commit comments

Comments
 (0)