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:
parent
5af3f7f357
commit
00c7b91f91
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue