Skip to content

Commit ffea4f6

Browse files
authored
Merge pull request #2005 from ruby/fix-test
Skip `AbstractSyntaxTree` test with ruby-3.4
2 parents 6ea40c4 + a8e4ba0 commit ffea4f6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/rbs/runtime_prototype_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def initialize: () -> void
389389
end
390390
end
391391

392-
if RUBY_VERSION >= '3.1'
392+
if RUBY_VERSION >= '3.1' && RUBY_VERSION <= "3.3"
393393
class TestForYield
394394
def m1() yield end
395395
def m2() yield 42 end

test/stdlib/RubyVM_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def test_parse_file
1616
end
1717

1818
def test_of
19+
return if RUBY_VERSION >= "3.4.0"
1920
assert_send_type "(::Proc | ::Method | ::UnboundMethod body, ?keep_script_lines: bool, ?error_tolerant: bool, ?keep_tokens: bool) -> ::RubyVM::AbstractSyntaxTree::Node?",
2021
RubyVM::AbstractSyntaxTree, :of, method(:test_of)
2122
end

0 commit comments

Comments
 (0)