1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
```
This commit is contained in:
Yusuke Endoh 2021-10-25 20:43:42 +09:00
parent 5af3f7f357
commit 00c7b91f91

View file

@ -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