diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-09-11 11:57:52 -0400 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-09-12 13:43:04 -0400 |
| commit | f59b908e477797b069bd5628440df6977e972916 (patch) | |
| tree | bc95c75eb8577a6fb1da96ab5f5663731d550dce /test/ruby | |
| parent | d4ab1e448245f1bc13c9262102fd4db3a2284b88 (diff) | |
[PRISM] Omit some TestAST tests when Prism is enabled
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11497
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_ast.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_ast.rb b/test/ruby/test_ast.rb index 66a5f0556d..7a6d1b0f17 100644 --- a/test/ruby/test_ast.rb +++ b/test/ruby/test_ast.rb @@ -359,7 +359,7 @@ class TestAst < Test::Unit::TestCase end def test_of_proc_and_method - omit if ParserSupport.prism_enabled? + omit if ParserSupport.prism_enabled? || ParserSupport.prism_enabled_in_subprocess? proc = Proc.new { 1 + 2 } method = self.method(__method__) @@ -793,7 +793,7 @@ dummy end def test_keep_script_lines_for_of_with_existing_SCRIPT_LINES__that_has__FILE__as_a_key - omit if ParserSupport.prism_enabled? + omit if ParserSupport.prism_enabled? || ParserSupport.prism_enabled_in_subprocess? # This test confirms that the bug that previously occurred because of # `AbstractSyntaxTree.of`s unnecessary dependence on SCRIPT_LINES__ does not reproduce. @@ -862,7 +862,7 @@ dummy end def test_e_option - omit if ParserSupport.prism_enabled? + omit if ParserSupport.prism_enabled? || ParserSupport.prism_enabled_in_subprocess? assert_in_out_err(["-e", "def foo; end; pp RubyVM::AbstractSyntaxTree.of(method(:foo)).type"], "", [":SCOPE"], []) |
