mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
irb: Drop lines from backtrace for tests in Ruby repository
This commit is contained in:
parent
111fddd543
commit
559f844bf4
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@ EOF
|
|||
def filter_backtrace(bt)
|
||||
return nil if bt =~ /\/irb\/.*\.rb/
|
||||
return nil if bt =~ /\/irb\.rb/
|
||||
return nil if bt =~ /tool\/lib\/.*\.rb|runner\.rb/ # for tests in Ruby repository
|
||||
case IRB.conf[:CONTEXT_MODE]
|
||||
when 1
|
||||
return nil if bt =~ %r!/tmp/irb-binding!
|
||||
|
|
Loading…
Add table
Reference in a new issue