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

ruby-changes:64967

From: Takashi <ko1@a...>
Date: Wed, 20 Jan 2021 18:10:35 +0900 (JST)
Subject: [ruby-changes:64967] f4a556f4f1 (master): [ruby/irb] Remove pp-specific stub from TestColor

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

From f4a556f4f1bf82f944ef576fdb3acd755e567368 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Wed, 20 Jan 2021 01:10:00 -0800
Subject: [ruby/irb] Remove pp-specific stub from TestColor

because it was for TestColorPrinter

https://github.com/ruby/irb/commit/7569206fd4

diff --git a/test/irb/test_color.rb b/test/irb/test_color.rb
index ea689b3..9976008 100644
--- a/test/irb/test_color.rb
+++ b/test/irb/test_color.rb
@@ -17,19 +17,6 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_color.rb#L17
     MAGENTA   = "\e[35m"
     CYAN      = "\e[36m"
 
-    def setup
-      @get_screen_size = Reline.method(:get_screen_size)
-      Reline.instance_eval { undef :get_screen_size }
-      def Reline.get_screen_size
-        [36, 80]
-      end
-    end
-
-    def teardown
-      Reline.instance_eval { undef :get_screen_size }
-      Reline.define_singleton_method(:get_screen_size, @get_screen_size)
-    end
-
     def test_colorize_code
       # Common behaviors. Warn parser error, but do not warn compile error.
       tests = {
-- 
cgit v0.10.2


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

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