mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use next in proc instead of break or return
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2c0d2db5cb
commit
1b2be1f8ca
1 changed files with 1 additions and 1 deletions
|
@ -694,7 +694,7 @@ class TestSetTraceFunc < Test::Unit::TestCase
|
|||
|
||||
def test_tracepoint_return_value
|
||||
trace = TracePoint.new(:call, :return){|tp|
|
||||
break if tp.path != __FILE__
|
||||
next if tp.path != __FILE__
|
||||
case tp.event
|
||||
when :call
|
||||
assert_raise(RuntimeError) {tp.return_value}
|
||||
|
|
Loading…
Reference in a new issue