Skip to content

Commit c5bf737

Browse files
authored
Update TestUtils.jl
1 parent 7b4eef6 commit c5bf737

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TestUtils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ a slightly modified dot test, in which case `real_plan=true` should be provided.
4343
function test_plan_adjoint end
4444

4545
function __init__()
46-
if isdefined(Base, :Experimental)
46+
if isdefined(Base, :get_extension)
4747
# Better error message if users forget to load Test
4848
Base.Experimental.register_error_hint(MethodError) do io, exc, _, _
4949
if (exc.f === test_real_fft || exc.f === test_complex_fft) && Base.get_extension(AbstractFFTs, :AbstractFFTsTestExt) === nothing
@@ -53,4 +53,4 @@ function __init__()
5353
end
5454
end
5555

56-
end
56+
end

0 commit comments

Comments
 (0)