From 25267fdd69edc29fe0dc32745549f94a37e7485c Mon Sep 17 00:00:00 2001 From: Jemma Issroff Date: Thu, 20 Jul 2023 17:00:30 -0400 Subject: [PATCH] [ruby/yarp] Exclude heredoc_nested test for Rubies < 3.3 Ripper's lexemes were slightly different in Ruby 3.2 for Heredocs. We ignored this complex heredoc test in this case because Ripper's output has changed https://github.com/ruby/yarp/commit/59d3d4a899 --- test/yarp/parse_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/yarp/parse_test.rb b/test/yarp/parse_test.rb index b6020b82db..d0cdfe2c26 100644 --- a/test/yarp/parse_test.rb +++ b/test/yarp/parse_test.rb @@ -30,6 +30,10 @@ class ParseTest < Test::Unit::TestCase seattlerb/heredoc_nested.txt ] + if RUBY_VERSION < "3.3.0" + known_failures << "seattlerb/pct_w_heredoc_interp_nested.txt" + end + def find_source_file_node(node) if node.is_a?(YARP::SourceFileNode) node