Skip to content

Commit e624e99

Browse files
committed
Test function definition, not method definition
1 parent b985309 commit e624e99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/codeedges.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ module ModSelective end
348348
edges = CodeEdges(ModEval, src)
349349
lr = lines_required(GlobalRef(ModEval, :revise538), src, edges)
350350
selective_eval_fromstart!(Frame(ModEval, src), lr, #=istoplevel=#true)
351-
@test isdefined(ModEval, :revise538) && length(methods(ModEval.revise538, (Float32,))) == 1
351+
@test isdefined(ModEval, :revise538) && isempty(methods(ModEval.revise538)) # function is defined, method is not
352352

353353
# https://github.com/timholy/Revise.jl/issues/599
354354
thk = Meta.lower(Main, quote

0 commit comments

Comments
 (0)