ruby-changes:54980
From: nobu <ko1@a...>
Date: Wed, 6 Mar 2019 20:50:02 +0900 (JST)
Subject: [ruby-changes:54980] nobu:r67187 (trunk): Symbol creation is not a problem now unless pinned down
nobu 2019-03-06 20:49:53 +0900 (Wed, 06 Mar 2019) New Revision: 67187 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67187 Log: Symbol creation is not a problem now unless pinned down Modified files: trunk/test/-ext-/symbol/test_inadvertent_creation.rb Index: test/-ext-/symbol/test_inadvertent_creation.rb =================================================================== --- test/-ext-/symbol/test_inadvertent_creation.rb (revision 67186) +++ test/-ext-/symbol/test_inadvertent_creation.rb (revision 67187) @@ -20,21 +20,13 @@ module Test_Symbol https://github.com/ruby/ruby/blob/trunk/test/-ext-/symbol/test_inadvertent_creation.rb#L20 def assert_not_interned_error(obj, meth, name, msg = nil, &block) e = assert_raise(NameError, msg) {obj.__send__(meth, name, &block)} - if Symbol === name - assert_not_pinneddown(name, msg) - else - assert_not_interned(name, msg) - end + assert_not_pinneddown(name, msg) e end def assert_not_interned_false(obj, meth, name, msg = nil) assert_not_send([obj, meth, name], msg) - if Symbol === name - assert_not_pinneddown(name, msg) - else - assert_not_interned(name, msg) - end + assert_not_pinneddown(name, msg) end Feature5072 = '[ruby-core:38367]' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/