From 9736077357c2c0b50245673efe07990f8fb81776 Mon Sep 17 00:00:00 2001 From: Soutaro Matsumoto Date: Fri, 13 Sep 2024 16:09:11 +0900 Subject: [PATCH 1/2] Skip runtime block generator test on 3.4-dev --- test/rbs/runtime_prototype_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/rbs/runtime_prototype_test.rb b/test/rbs/runtime_prototype_test.rb index 3958fa9ce..ddf97d9ad 100644 --- a/test/rbs/runtime_prototype_test.rb +++ b/test/rbs/runtime_prototype_test.rb @@ -389,7 +389,7 @@ def initialize: () -> void end end - if RUBY_VERSION >= '3.1' + if RUBY_VERSION >= '3.1' && RUBY_VERSION <= "3.3" class TestForYield def m1() yield end def m2() yield 42 end From a8e4ba08d34a9d087f593e79ae0fcccdba481b4a Mon Sep 17 00:00:00 2001 From: Soutaro Matsumoto Date: Fri, 13 Sep 2024 16:11:04 +0900 Subject: [PATCH 2/2] Skip `AbstractSyntaxTree.of` test --- test/stdlib/RubyVM_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/stdlib/RubyVM_test.rb b/test/stdlib/RubyVM_test.rb index 73090f05a..e3f4fbf9c 100644 --- a/test/stdlib/RubyVM_test.rb +++ b/test/stdlib/RubyVM_test.rb @@ -16,6 +16,7 @@ def test_parse_file end def test_of + return if RUBY_VERSION >= "3.4.0" assert_send_type "(::Proc | ::Method | ::UnboundMethod body, ?keep_script_lines: bool, ?error_tolerant: bool, ?keep_tokens: bool) -> ::RubyVM::AbstractSyntaxTree::Node?", RubyVM::AbstractSyntaxTree, :of, method(:test_of) end