Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
devmotion and github-actions[bot] authored Oct 20, 2023
1 parent bfe0508 commit f503567
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/TestUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ if isdefined(Base, :get_extension) && isdefined(Base.Experimental, :register_err
function __init__()
# Better error message if users forget to load Test
Base.Experimental.register_error_hint(MethodError) do io, exc, _, _
if (exc.f === test_interface ||
if (
exc.f === test_interface ||
exc.f === test_with_type ||
exc.f === test_type_stability ||
exc.f === example_inputs) &&
(Base.get_extension(Distributions, :DistributionsTestExt) === nothing)
exc.f === example_inputs
) && (Base.get_extension(Distributions, :DistributionsTestExt) === nothing)
print(io, "\nDid you forget to load Test?")
end
end
Expand Down

0 comments on commit f503567

Please sign in to comment.