mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
06574ad945
commit
efac0a2384
1 changed files with 0 additions and 9 deletions
|
@ -984,15 +984,6 @@ module MiniTest
|
||||||
|
|
||||||
def location e # :nodoc:
|
def location e # :nodoc:
|
||||||
last_before_assertion = ""
|
last_before_assertion = ""
|
||||||
|
|
||||||
# debug https://ci.appveyor.com/project/ruby/ruby/builds/26358355/job/27sp43hbqwqetqu0
|
|
||||||
# TODO: remove it
|
|
||||||
if e.backtrace == nil
|
|
||||||
STDERR.puts e.inspect
|
|
||||||
STDERR.puts e.class.ancestors
|
|
||||||
raise e.inspect
|
|
||||||
end
|
|
||||||
|
|
||||||
e.backtrace.reverse_each do |s|
|
e.backtrace.reverse_each do |s|
|
||||||
break if s =~ /in .(assert|refute|flunk|pass|fail|raise|must|wont)/
|
break if s =~ /in .(assert|refute|flunk|pass|fail|raise|must|wont)/
|
||||||
last_before_assertion = s
|
last_before_assertion = s
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue