[前][次][番号順一覧][スレッド一覧]

ruby-changes:66142

From: Takashi <ko1@a...>
Date: Tue, 11 May 2021 13:44:14 +0900 (JST)
Subject: [ruby-changes:66142] afa70d079f (master): Explicitly specify encoding for another test as well

https://git.ruby-lang.org/ruby.git/commit/?id=afa70d079f

From afa70d079f0eebc25fc10afe0ce69dd01bb9132b Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Mon, 10 May 2021 21:41:36 -0700
Subject: Explicitly specify encoding for another test as well

Same as e2ccc3301e2c69533b9ef2464613781c6c964c3a
https://ci.appveyor.com/project/ruby/ruby/builds/39102539/job/k8m1yrrjesxbgvtq
---
 test/irb/test_raise_no_backtrace_exception.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/irb/test_raise_no_backtrace_exception.rb b/test/irb/test_raise_no_backtrace_exception.rb
index fc4e35f..179c6c4 100644
--- a/test/irb/test_raise_no_backtrace_exception.rb
+++ b/test/irb/test_raise_no_backtrace_exception.rb
@@ -17,13 +17,13 @@ IRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_raise_no_backtrace_exception.rb#L17
     def test_raise_exception_with_invalid_byte_sequence
       skip if RUBY_ENGINE == 'truffleruby'
       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\)/, [])
+      assert_in_out_err(bundle_exec + %w[-rirb -W0 -e IRB.start(__FILE__) -- -f --], <<~IRB, /A\\xF3B \(StandardError\)/, [], encoding: "UTF-8")
         raise StandardError, "A\\xf3B"
       IRB
     end
 
     def test_raise_exception_with_different_encoding_containing_invalid_byte_sequence
-      skip if RUBY_ENGINE == 'truffleruby' || /mswin|mingw/ =~ RUBY_PLATFORM
+      skip if RUBY_ENGINE == 'truffleruby'
       backup_home = ENV["HOME"]
       Dir.mktmpdir("test_irb_raise_no_backtrace_exception_#{$$}") do |tmpdir|
         ENV["HOME"] = tmpdir
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]