mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
RubyVM::InstructionSequence#to_binary raises "should not compile with coverage" while coverage measurement is enabled. Most to_binary tests in test_iseq.rb go through the iseq_to_binary helper, which omits the test in that case, but these two call to_binary directly. This makes `make check COVERAGE=true` fail deterministically, which has kept the ruby/actions coverage workflow red on every scheduled run. Use the helper in test_serialize_anonymous_outer_variables, and guard test_rb_iseq_load_from_binary with the same idiom. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>