diff options
author | Peter Zhu <[email protected]> | 2025-06-02 11:51:03 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2025-06-02 15:45:16 -0400 |
commit | 685c8ca9af892f562f64b54dbee73bb9a1999b90 (patch) | |
tree | 94a6ea0ac982e7d62200adf91901ffadfd6b4bb0 /test | |
parent | e596cf6e93dbf121e197cccfec8a69902e00eda3 (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.rb | 2 |
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) |