Skip to content

Commit 7b4eef6

Browse files
Apply suggestions from code review
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
1 parent 728fe11 commit 7b4eef6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1313

1414
[extensions]
1515
AbstractFFTsChainRulesCoreExt = "ChainRulesCore"
16-
AbstractFFTsTestUtilsExt = "Test"
16+
AbstractFFTsTestExt = "Test"
1717

1818
[compat]
1919
ChainRulesCore = "1"

src/TestUtils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function __init__()
4646
if isdefined(Base, :Experimental)
4747
# Better error message if users forget to load Test
4848
Base.Experimental.register_error_hint(MethodError) do io, exc, _, _
49-
if exc.f in (test_real_fft, test_complex_fft)
49+
if (exc.f === test_real_fft || exc.f === test_complex_fft) && Base.get_extension(AbstractFFTs, :AbstractFFTsTestExt) === nothing
5050
print(io, "\nDid you forget to load Test?")
5151
end
5252
end

0 commit comments

Comments
 (0)