From d2458e66c26bac5e9db98c22dc6910cb45971b85 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 23 May 2017 17:57:28 +0900 Subject: Remove class info from backtrace lines. --- test/t/exception.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/t/exception.rb b/test/t/exception.rb index 9c8b36e44..ce7b5841e 100644 --- a/test/t/exception.rb +++ b/test/t/exception.rb @@ -398,7 +398,7 @@ assert('GC in rescue') do end rescue => exception GC.start - assert_equal("#{__FILE__}:#{line}:in Object.call", + assert_equal("#{__FILE__}:#{line}:in call", exception.backtrace.first) end end @@ -416,7 +416,7 @@ assert('Method call in rescue') do rescue => exception [3].each do end - assert_equal("#{__FILE__}:#{line}:in Object.call", + assert_equal("#{__FILE__}:#{line}:in call", exception.backtrace.first) end end -- cgit v1.2.3