[前][次][番号順一覧][スレッド一覧]

ruby-changes:67363

From: Nobuyoshi <ko1@a...>
Date: Mon, 30 Aug 2021 13:17:03 +0900 (JST)
Subject: [ruby-changes:67363] 66a4768f65 (master): [ruby/irb] Relax backtrace nest levels

https://git.ruby-lang.org/ruby.git/commit/?id=66a4768f65

From 66a4768f65423189e61d39a473a031a5eb0253ea Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 30 Aug 2021 13:11:13 +0900
Subject: [ruby/irb] Relax backtrace nest levels

https://github.com/ruby/irb/commit/fb637bc68f
---
 test/irb/test_context.rb | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb
index c5dded3..ba3b94c 100644
--- a/test/irb/test_context.rb
+++ b/test/irb/test_context.rb
@@ -462,7 +462,6 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L462
       if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT.tty?
         expected = [
           :*, /Traceback \(most recent call last\):\n/,
-          :*, /\t... 8 levels...\n/,
           :*, /\t 2: from \(irb\):1:in `<main>'\n/,
           :*, /\t 1: from \(irb\):1:in `hoge'\n/,
           :*, /\(irb\):1:in `fuga': unhandled exception\n/,
@@ -472,7 +471,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L471
           :*, /\(irb\):1:in `fuga': unhandled exception\n/,
           :*, /\tfrom \(irb\):1:in `hoge'\n/,
           :*, /\tfrom \(irb\):1:in `<main>'\n/,
-          :*, /\t... 8 levels...\n/,
+          :*
         ]
       end
       assert_pattern_list(expected, out)
@@ -494,7 +493,6 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L493
       if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT.tty?
         expected = [
           :*, /Traceback \(most recent call last\):\n/,
-          :*, /\t... 8 levels...\n/,
           :*, /\t 2: from \(irb\):1:in `<main>'\n/,
           :*, /\t 1: from \(irb\):1:in `hoge'\n/,
           :*, /\(irb\):1:in `fuga': A\\xF3B \(RuntimeError\)\n/,
@@ -504,7 +502,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L502
           :*, /\(irb\):1:in `fuga': A\\xF3B \(RuntimeError\)\n/,
           :*, /\tfrom \(irb\):1:in `hoge'\n/,
           :*, /\tfrom \(irb\):1:in `<main>'\n/,
-          :*, /\t... 8 levels...\n/,
+          :*
         ]
       end
       assert_pattern_list(expected, out)
@@ -532,7 +530,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L530
       if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT.tty?
         expected = [
           :*, /Traceback \(most recent call last\):\n/,
-          :*, /\t... 27 levels...\n/,
+          :*, /\t... \d+ levels...\n/,
           :*, /\t16: from \(irb\):1:in `a4'\n/,
           :*, /\t15: from \(irb\):1:in `a5'\n/,
           :*, /\t14: from \(irb\):1:in `a6'\n/,
@@ -570,7 +568,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L568
           :*, /\tfrom \(irb\):1:in `a6'\n/,
           :*, /\tfrom \(irb\):1:in `a5'\n/,
           :*, /\tfrom \(irb\):1:in `a4'\n/,
-          :*, /\t... 27 levels...\n/,
+          :*, /\t... \d+ levels...\n/,
         ]
       end
       assert_pattern_list(expected, out)
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]