From 9531e69f996643b57d25f6b9faa08346f011eed8 Mon Sep 17 00:00:00 2001
From: Charles Oliver Nutter <headius@headius.com>
Date: Fri, 21 Oct 2016 14:36:51 -0500
Subject: Skip test that depends on RubyVM when it is not available (JRuby).

---
 activesupport/test/executor_test.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/activesupport/test/executor_test.rb b/activesupport/test/executor_test.rb
index d409216206..03ec6020c3 100644
--- a/activesupport/test/executor_test.rb
+++ b/activesupport/test/executor_test.rb
@@ -192,6 +192,8 @@ class ExecutorTest < ActiveSupport::TestCase
   end
 
   def test_class_serial_is_unaffected
+    skip if !defined?(RubyVM)
+
     hook = Class.new do
       define_method(:run) do
         nil
-- 
cgit v1.2.3