From 00c7b91f9103fa8bc38ef294f097160c2ce92c56 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Mon, 25 Oct 2021 20:43:42 +0900 Subject: [PATCH] test/ruby/test_marshal.rb: Prevent "assigned but unused variable" warning http://rubyci.s3.amazonaws.com/centos7/ruby-master/log/20211025T093004Z.log.html.gz ``` /home/chkbuild/chkbuild/tmp/build/20211025T093004Z/ruby/test/ruby/test_marshal.rb:925: warning: assigned but unused variable - objects ``` --- test/ruby/test_marshal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index 19f41de27e..361d18dd4b 100644 --- a/test/ruby/test_marshal.rb +++ b/test/ruby/test_marshal.rb @@ -922,7 +922,7 @@ class TestMarshal < Test::Unit::TestCase end def test_modules_and_classes_are_not_frozen - objects = Marshal.load(encode([Object, Kernel]), freeze: true) + _objects = Marshal.load(encode([Object, Kernel]), freeze: true) refute_predicate Object, :frozen? refute_predicate Kernel, :frozen? end