ruby-changes:64957
From: Takashi <ko1@a...>
Date: Tue, 19 Jan 2021 16:56:15 +0900 (JST)
Subject: [ruby-changes:64957] 4da4ad69bb (master): [ruby/irb] Support GitHub Actions
https://git.ruby-lang.org/ruby.git/commit/?id=4da4ad69bb From 4da4ad69bb7aa3dd011786834c6584bf88e0282a Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Mon, 18 Jan 2021 23:48:33 -0800 Subject: [ruby/irb] Support GitHub Actions https://github.com/ruby/irb/commit/8e9e6c4037 diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index f3d0626..2dba42d 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -447,7 +447,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L447 irb.eval_input end assert_empty err - if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' + if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT.tty? expected = [ :*, /Traceback \(most recent call last\):\n/, :*, /\t 2: from \(irb\):1:in `<main>'\n/, @@ -477,7 +477,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L477 irb.eval_input end assert_empty err - if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' + if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT.tty? expected = [ :*, /Traceback \(most recent call last\):\n/, :*, /\t 2: from \(irb\):1:in `<main>'\n/, @@ -513,7 +513,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_context.rb#L513 irb.eval_input end assert_empty err - if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' + if '2.5.0' <= RUBY_VERSION && RUBY_VERSION < '3.0.0' && STDOUT.tty? expected = [ :*, /Traceback \(most recent call last\):\n/, :*, /\t... 5 levels...\n/, -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/