Skip to content

Commit c7f9b79

Browse files
committed
Support Julia 1.0
1 parent 68daedb commit c7f9b79

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/TestUtils.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ function test_complex_fft end
44
function test_real_fft end
55

66
function __init__()
7-
# Better error message if users forget to load Test
8-
Base.Experimental.register_error_hint(MethodError) do io, exc, _, _
9-
if exc.f in (test_real_fft, test_complex_fft)
10-
print(io, "\nDid you forget to load Test?")
7+
if isdefined(Base, :Experimental)
8+
# Better error message if users forget to load Test
9+
Base.Experimental.register_error_hint(MethodError) do io, exc, _, _
10+
if exc.f in (test_real_fft, test_complex_fft)
11+
print(io, "\nDid you forget to load Test?")
12+
end
1113
end
1214
end
1315
end

0 commit comments

Comments
 (0)