diff options
| author | Benoit Daloze <eregontp@gmail.com> | 2023-09-19 19:06:46 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-09-19 17:20:15 +0000 |
| commit | 3fadb66bf18f75a607a8895e5aeca295ac89e17f (patch) | |
| tree | 9ab0a9ff33d448b7916a6d49fb5db901e2a99aa4 | |
| parent | 7fc73ab5f6fbe46655855079954b26dcc14576b3 (diff) | |
[ruby/yarp] Only use Ripper on CRuby
https://github.com/ruby/yarp/commit/9c23f53d7b
| -rw-r--r-- | test/yarp/parse_test.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/yarp/parse_test.rb b/test/yarp/parse_test.rb index e490b9082b..bdfce882f9 100644 --- a/test/yarp/parse_test.rb +++ b/test/yarp/parse_test.rb @@ -46,8 +46,8 @@ module YARP end # To accurately compare against Ripper, we need to make sure that we're - # running on Ruby 3.2+. - ripper_enabled = RUBY_VERSION >= "3.2.0" + # running on CRuby 3.2+. + ripper_enabled = RUBY_ENGINE == "ruby" && RUBY_VERSION >= "3.2.0" # The FOCUS environment variable allows you to specify one particular fixture # to test, instead of all of them. @@ -58,9 +58,6 @@ module YARP # These fail on TruffleRuby due to a difference in Symbol#inspect: :测试 vs :"测试" next if RUBY_ENGINE == "truffleruby" and %w[seattlerb/bug202.txt seattlerb/magic_encoding_comment.txt].include?(relative) - # These fail on TruffleRuby due to a Ripper difference - next if RUBY_ENGINE == "truffleruby" and %w[symbols.txt unparser/corpus/literal/def.txt].include?(relative) - filepath = File.join(base, relative) snapshot = File.expand_path(File.join("snapshots", relative), __dir__) |
