summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2025-06-02 11:51:03 -0400
committerPeter Zhu <[email protected]>2025-06-02 15:45:16 -0400
commit685c8ca9af892f562f64b54dbee73bb9a1999b90 (patch)
tree94a6ea0ac982e7d62200adf91901ffadfd6b4bb0 /test
parente596cf6e93dbf121e197cccfec8a69902e00eda3 (diff)
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 '<main>': undefined method 'iseq_to_binary' for main (NoMethodError)
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13494
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_iseq.rb2
1 files changed, 1 insertions, 1 deletions
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)