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

ruby-changes:54815

From: nobu <ko1@a...>
Date: Fri, 8 Feb 2019 11:54:24 +0900 (JST)
Subject: [ruby-changes:54815] nobu:r67034 (trunk): Suppress warning [Feature #15575]

nobu	2019-02-08 11:54:20 +0900 (Fri, 08 Feb 2019)

  New Revision: 67034

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67034

  Log:
    Suppress warning  [Feature #15575]

  Modified files:
    trunk/test/ruby/test_class.rb
Index: test/ruby/test_class.rb
===================================================================
--- test/ruby/test_class.rb	(revision 67033)
+++ test/ruby/test_class.rb	(revision 67034)
@@ -262,7 +262,9 @@ class TestClass < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_class.rb#L262
   end
 
   def test_invalid_yield_from_class_definition
-    assert_raise(LocalJumpError) { eval("class C; yield; end") }
+    assert_raise(LocalJumpError) {
+      EnvUtil.suppress_warning {eval("class C; yield; end")}
+    }
   end
 
   def test_clone

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

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