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

ruby-changes:65147

From: Nobuyoshi <ko1@a...>
Date: Fri, 5 Feb 2021 12:30:52 +0900 (JST)
Subject: [ruby-changes:65147] 9ef7780b09 (master): [ruby/io-console] Run subprocesses without test libraries

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

From 9ef7780b0946c2bc96fe39b32c75c08134bfb408 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 29 Jan 2021 12:49:00 +0900
Subject: [ruby/io-console] Run subprocesses without test libraries

Now io/console is loaded from test-unit indirectly, test-unit
requires power_assert which requires io/console.

https://github.com/ruby/io-console/commit/8817d07951
https://github.com/ruby/io-console/commit/639cce89de
---
 test/io/console/test_io_console.rb | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index bec10c5..adcff4a 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -545,14 +545,14 @@ end https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L545
 
 TestIO_Console.class_eval do
   def test_stringio_getch
-    assert_separately %w"--disable=gems -rstringio -rio/console", %q{
-      assert_operator(StringIO, :method_defined?, :getch)
+    assert_ruby_status %w"--disable=gems -rstringio -rio/console", %q{
+      abort unless StringIO.method_defined?(:getch)
     }
-    assert_separately %w"--disable=gems -rio/console -rstringio", %q{
-      assert_operator(StringIO, :method_defined?, :getch)
+    assert_ruby_status %w"--disable=gems -rio/console -rstringio", %q{
+      abort unless StringIO.method_defined?(:getch)
     }
-    assert_separately %w"--disable=gems -rstringio", %q{
-      assert_not_operator(StringIO, :method_defined?, :getch)
+    assert_ruby_status %w"--disable=gems -rstringio", %q{
+      abort if StringIO.method_defined?(:getch)
     }
   end
 end
-- 
cgit v1.1


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

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