diff options
author | Jeremy Evans <code@jeremyevans.net> | 2020-12-09 20:53:02 -0800 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2020-12-10 10:16:05 -0800 |
commit | 01b7d5acc702df22d306ae95f1a9c3096e63e624 (patch) | |
tree | ec42028540f04653d1022a1ed83d509df77bd723 /test/-ext- | |
parent | 4a559aa22537bbd2f17c7babb1aca48d1a3a4647 (diff) |
Remove the uninitialized instance variable verbose mode warning
This speeds up all instance variable access, even when not in
verbose mode. Uninitialized instance variable warnings were
rarely helpful, and resulted in slower code if you wanted to
avoid warnings when run in verbose mode.
Implements [Feature #17055]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3879
Diffstat (limited to 'test/-ext-')
-rw-r--r-- | test/-ext-/symbol/test_inadvertent_creation.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/-ext-/symbol/test_inadvertent_creation.rb b/test/-ext-/symbol/test_inadvertent_creation.rb index b0508e9a07..995e01ee15 100644 --- a/test/-ext-/symbol/test_inadvertent_creation.rb +++ b/test/-ext-/symbol/test_inadvertent_creation.rb @@ -485,10 +485,8 @@ module Test_Symbol def test_iv_get obj = Object.new - assert_warning(/not initialized/) do - assert_no_immortal_symbol_created("rb_iv_get") do |name| - Bug::Symbol.iv_get(obj, name) - end + assert_no_immortal_symbol_created("rb_iv_get") do |name| + Bug::Symbol.iv_get(obj, name) end end end |