Skip to content

Commit bfafaa5

Browse files
authored
Omit 2 encoding error related tests for TruffleRuby (#854)
They're failing due to an issue in Prism: ruby/prism#2129 So we need to skip them until: - The issue is fixed in Prism - TruffleRuby is updated to a version of Prism that includes the fix
1 parent a641746 commit bfafaa5

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎test/irb/test_context.rb‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ def test_last_value
3939
end
4040

4141
def test_evaluate_with_encoding_error_without_lineno
42+
if RUBY_ENGINE == 'truffleruby'
43+
omit "Remove me after https://github.com/ruby/prism/issues/2129 is addressed and adopted in TruffleRuby"
44+
end
45+
4246
assert_raise_with_message(EncodingError, /invalid symbol/) {
4347
@context.evaluate(%q[:"\xAE"], 1)
4448
# The backtrace of this invalid encoding hash doesn't contain lineno.

‎test/irb/test_ruby_lex.rb‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ def assert_should_continue(lines, expected, local_variables: [])
221221
end
222222

223223
def assert_code_block_open(lines, expected, local_variables: [])
224+
if RUBY_ENGINE == 'truffleruby'
225+
omit "Remove me after https://github.com/ruby/prism/issues/2129 is addressed and adopted in TruffleRuby"
226+
end
227+
224228
_indent_level, _continue, code_block_open = check_state(lines, local_variables: local_variables)
225229
error_message = "Wrong result of code_block_open for:\n #{lines.join("\n")}"
226230
assert_equal(expected, code_block_open, error_message)

0 commit comments

Comments
 (0)