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 3df13a7 commit 37f93c9Copy full SHA for 37f93c9
test/runtests.jl
@@ -68,6 +68,7 @@ isdefined(Main, :Revise) ? includet("script.jl") : include("script.jl")
68
m = first(methods(replfunc))
69
@test whereis(m) == ("REPL[1]", 1)
70
# Test with broken lookup
71
+ oldlookup = CodeTracking.method_lookup_callback[]
72
CodeTracking.method_lookup_callback[] = m -> error("oops")
73
74
# Test with definition(String, m)
@@ -81,6 +82,7 @@ isdefined(Main, :Revise) ? includet("script.jl") : include("script.jl")
81
82
@test definition(String, first(methods(f))) == (fstr, 1)
83
pop!(hp.history)
84
end
85
+ CodeTracking.method_lookup_callback[] = oldlookup
86
87
m = first(methods(Test.eval))
88
@test occursin(Sys.STDLIB, whereis(m)[1])
0 commit comments