Skip to content

Commit 737d928

Browse files
authored
fix some warnings during testing (#481)
1 parent 0375ee2 commit 737d928

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function sparam_syms(meth::Method)
5757
return s
5858
end
5959

60-
separate_kwargs(args...; kwargs...) = (args, kwargs.data)
60+
separate_kwargs(args...; kwargs...) = (args, values(kwargs))
6161

6262
pc_expr(src::CodeInfo, pc) = src.code[pc]
6363
pc_expr(framecode::FrameCode, pc) = pc_expr(framecode.src, pc)

test/debug.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,12 @@ end
9494
end
9595
end
9696

97-
f22() = string(:(a+b))
98-
@test step_through(f22) == "a + b"
99-
f22() = string(QuoteNode(:a))
100-
@test step_through(f22) == ":a"
97+
let f22() = string(:(a+b))
98+
@test step_through(f22) == "a + b"
99+
end
100+
let f22() = string(QuoteNode(:a))
101+
@test step_through(f22) == ":a"
102+
end
101103

102104
frame = enter_call(trivial, 2)
103105
@test debug_command(frame, :s) === nothing

0 commit comments

Comments
 (0)