rubygem-activesupport/rubygem-activesupport-7.0.4-ruby32-rubyvm-class_serial-removal.patch
jxy_git 62672db840 Backport upstream fix for test failure with ruby3.2 wrt class_serial removal
(cherry picked from commit 90e30367f4f5250a92eaba3d89c3d3d32be0de91)
2023-08-14 13:13:20 +08:00

24 lines
839 B
Diff

From 60ffaac2e9644076e53afa1a2b1a716e289b7085 Mon Sep 17 00:00:00 2001
From: Akira Matsuda <ronnie@dio.jp>
Date: Thu, 15 Dec 2022 15:45:27 +0900
Subject: [PATCH] RubyVM class serial is no longer available in Ruby 3.2
since ruby/ruby@13bd617ea6fdf72467c593639cf33312a06c330c
---
activesupport/test/executor_test.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/activesupport/test/executor_test.rb b/activesupport/test/executor_test.rb
index d366ae55b6e0..27872458d95b 100644
--- a/activesupport/test/executor_test.rb
+++ b/activesupport/test/executor_test.rb
@@ -226,7 +226,7 @@ def test_hook_insertion_order
end
def test_class_serial_is_unaffected
- skip if !defined?(RubyVM)
+ skip if !defined?(RubyVM) || !RubyVM.stat.has_key?(:class_serial)
hook = Class.new do
define_method(:run) do