From 685c8ca9af892f562f64b54dbee73bb9a1999b90 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Mon, 2 Jun 2025 11:51:03 -0400 Subject: Fix test_loading_kwargs_memory_leak The test fails with: TestISeq#test_loading_kwargs_memory_leak [test/ruby/test_iseq.rb:882]: pid 18222 exit 1 | -:2:in '
': undefined method 'iseq_to_binary' for main (NoMethodError) --- test/ruby/test_iseq.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby') diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb index 924c144702..29c8b1bf2d 100644 --- a/test/ruby/test_iseq.rb +++ b/test/ruby/test_iseq.rb @@ -880,7 +880,7 @@ class TestISeq < Test::Unit::TestCase def test_loading_kwargs_memory_leak assert_no_memory_leak([], "#{<<~"begin;"}", "#{<<~'end;'}", rss: true) - a = iseq_to_binary(RubyVM::InstructionSequence.compile("foo(bar: :baz)")) + a = RubyVM::InstructionSequence.compile("foo(bar: :baz)").to_binary begin; 1_000_000.times do RubyVM::InstructionSequence.load_from_binary(a) -- cgit v1.2.3