Skip to content

Commit 650df69

Browse files
committed
Exclude MRI test broken without RubyVM::InstructionSequence.compile
* This is what CRuby does, which would fail the test due to different message: ruby -e 'p self.then { eval "next #{rand}" }' (eval): (eval):1: Can't escape from eval with next (SyntaxError)
1 parent e2b18d3 commit 650df69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/mri/excludes/TestSyntax.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@
5454
exclude :test_methoddef_endless, "needs investigation"
5555
exclude :test_numbered_parameter, "needs investigation"
5656
exclude :test_warning_for_cr, "needs investigation"
57+
exclude :test_invalid_next, "#syntax_check does catch {|tag| eval(code, binding, ...) } and so next is arguably valid since it's in a block"

0 commit comments

Comments
 (0)