1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Skip test_raise_exception_with_invalid_byte_sequence

on Windows for now. It seems like we haven't figured this out yet.

https://github.com/ruby/irb/commit/ecf5a1ace1
This commit is contained in:
Takashi Kokubun 2021-05-10 22:45:29 -07:00 committed by git
parent afa70d079f
commit 66ca6ede16

View file

@ -15,9 +15,9 @@ IRB
end end
def test_raise_exception_with_invalid_byte_sequence def test_raise_exception_with_invalid_byte_sequence
skip if RUBY_ENGINE == 'truffleruby' skip if RUBY_ENGINE == 'truffleruby' || /mswin|mingw/ =~ RUBY_PLATFORM
bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : [] bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : []
assert_in_out_err(bundle_exec + %w[-rirb -W0 -e IRB.start(__FILE__) -- -f --], <<~IRB, /A\\xF3B \(StandardError\)/, [], encoding: "UTF-8") assert_in_out_err(bundle_exec + %w[-rirb -W0 -e IRB.start(__FILE__) -- -f --], <<~IRB, /A\\xF3B \(StandardError\)/, [])
raise StandardError, "A\\xf3B" raise StandardError, "A\\xf3B"
IRB IRB
end end