We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8485ca8 commit a0346e8Copy full SHA for a0346e8
src/TestUtils.jl
@@ -43,7 +43,7 @@ a slightly modified dot test, in which case `real_plan=true` should be provided.
43
function test_plan_adjoint end
44
45
function __init__()
46
- if isdefined(Base, :get_extension)
+ if isdefined(Base, :get_extension) && isdefined(Base.Experimental, :register_error_hint)
47
# Better error message if users forget to load Test
48
Base.Experimental.register_error_hint(MethodError) do io, exc, _, _
49
if (exc.f === test_real_fft || exc.f === test_complex_fft) && Base.get_extension(AbstractFFTs, :AbstractFFTsTestExt) === nothing
0 commit comments