lib/power_assert/context.rb in power_assert-1.1.3 vs lib/power_assert/context.rb in power_assert-1.1.4
- old
+ new
@@ -169,10 +169,10 @@
else
@assertion_proc = source_binding.eval "Proc.new {#{assertion_proc_or_source}}"
line = assertion_proc_or_source
end
@parser = Parser::DUMMY
- @trace_call = TracePoint.new(:call, :c_call) do |tp|
+ @trace_call = TracePoint.new(:call, :c_call) do
if PowerAssert.app_context? and Thread.current == @target_thread
@trace_call.disable
locs = PowerAssert.app_caller_locations
path = locs.last.path
lineno = locs.last.lineno