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

ruby-changes:60250

From: Koichi <ko1@a...>
Date: Mon, 2 Mar 2020 13:43:51 +0900 (JST)
Subject: [ruby-changes:60250] d348b4adef (master): skip test if Reline.completion_proc is nil.

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

From d348b4adefd0f570686640335e183d8a96d626c6 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Mon, 2 Mar 2020 13:42:35 +0900
Subject: skip test if Reline.completion_proc is nil.

Some other tests can set Reline.completion_proc, so if it is nil,
simply skip this test.

diff --git a/test/reline/test_reline.rb b/test/reline/test_reline.rb
index d6a6e21..0de2462 100644
--- a/test/reline/test_reline.rb
+++ b/test/reline/test_reline.rb
@@ -94,7 +94,10 @@ class Reline::Test < Reline::TestCase https://github.com/ruby/ruby/blob/trunk/test/reline/test_reline.rb#L94
   end
 
   def test_completion_proc
-    assert_equal(nil, Reline.completion_proc)
+    skip unless Reline.completion_proc == nil
+    # Another test can set Reline.completion_proc
+
+    # assert_equal(nil, Reline.completion_proc)
 
     p = proc {}
     Reline.completion_proc = p
-- 
cgit v0.10.2


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

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