Permalink
Browse files

Tweak toplevel return test to run on JRuby and unexclude.

  • Loading branch information...
headius committed Sep 5, 2017
1 parent bc262ee commit c52ebf0c91f624260e37874a5c329bf9a089c16d
Showing with 1 addition and 2 deletions.
  1. +0 −1 test/mri/excludes/TestSyntax.rb
  2. +1 −1 test/mri/ruby/test_syntax.rb
@@ -13,7 +13,6 @@
exclude :test_heredoc_newline, "needs investigation"
exclude :test_integer_suffix, "needs investigation"
exclude :test_invalid_next, "needs investigation"
-exclude :test_return_toplevel, "uses RubyVM"
exclude :test_syntax_error_in_rescue, "needs investigation"
exclude :test_warn_unreachable, "needs investigation"
exclude :test_warning_literal_in_condition, "needs investigation"
@@ -956,7 +956,7 @@ def test_return_toplevel
code.each_line do |s|
s.chomp!
a.for(s) do
- assert_ruby_status([], s, proc {RubyVM::InstructionSequence.compile(s).disasm})
+ assert_ruby_status([], s, proc {RubyVM::InstructionSequence.compile(s).disasm rescue s})
end
end
end

0 comments on commit c52ebf0

Please sign in to comment.