Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip AbstractSyntaxTree test with ruby-3.4 #2005

Merged
merged 2 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/rbs/runtime_prototype_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/stdlib/RubyVM_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down