From 17c9b3d04455cec88cb5249c95c94da17c97b89a Mon Sep 17 00:00:00 2001 From: nick evans Date: Sun, 19 Jul 2026 12:34:27 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=F0=9F=9A=A7=20Mark=20local=20stacktra?= =?UTF-8?q?ce=20tests=20pending=20for=20JRuby?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The stacktraces just don't line up. * JRuby Issue: jruby/jruby#9528 * Fixed by: jruby/jruby#9528 --- test/lib/helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/lib/helper.rb b/test/lib/helper.rb index 95865637..95879010 100644 --- a/test/lib/helper.rb +++ b/test/lib/helper.rb @@ -210,7 +210,9 @@ def assert_local_raise(expected, message = nil) assert_raise(expected, &block) end stack = caller - assert_equal stack, error.backtrace&.last(stack.size) + pend_if_jruby("JRuby bug: jruby/jruby#9528, fixed by: jruby/jruby#9548") do + assert_equal stack, error.backtrace&.last(stack.size) + end error end @@ -221,6 +223,7 @@ def assert_local_raise(expected, message = nil) # it can capture the top of the stacktrace. After that, it'll continue to use # the same stacktrace. def assert_reraised(*args, imap: nil, &block) + return assert_local_raise(*args, &block) if RUBY_ENGINE == "jruby" @rcvr_thread_trace ||= imap.instance_variable_get(:@receiver_thread) &.backtrace&.last(2) error = assert_local_raise(*args, &block)