ruby-changes:60475
From: Yusuke <ko1@a...>
Date: Mon, 23 Mar 2020 02:14:59 +0900 (JST)
Subject: [ruby-changes:60475] 1c05682929 (master): test/ruby/test_m17n.rb: Make the debugging code print to stderr
https://git.ruby-lang.org/ruby.git/commit/?id=1c05682929 From 1c056829298479168cf4db8f1ebdd248149fef70 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Mon, 23 Mar 2020 02:13:28 +0900 Subject: test/ruby/test_m17n.rb: Make the debugging code print to stderr The test is executed with -j8, so printing someting to stdout may break. diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index c21f411..321a356 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -315,27 +315,27 @@ class TestM17N < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_m17n.rb#L315 begin "abc".encode(Encoding.default_external) rescue Encoding::CompatibilityError - p :debug_1 - p $! - p *$!.backtrace - p "abc".encoding - p Encoding.default_external + $stderr.puts :debug_1.inspect + $stderr.puts $!.inspect + $stderr.puts *$!.backtrace + $stderr.puts "abc".encoding.inspect + $stderr.puts Encoding.default_external.inspect end begin [o].inspect rescue Encoding::CompatibilityError - p :debug_2 - p $! - p *$!.backtrace - p "abc".encoding - p Encoding.default_external + $stderr.puts :debug_2.inspect + $stderr.puts $!.inspect + $stderr.puts *$!.backtrace + $stderr.puts "abc".encoding.inspect + $stderr.puts Encoding.default_external.inspect begin - p o.inspect - p :debug_3 + $stderr.puts o.inspect.inspect + $stderr.puts :debug_3.inspect rescue Encoding::CompatibilityError - p :debug_4 - p $! - p *$!.backtrace + $stderr.puts :debug_4.inspect + $stderr.puts $!.inspect + $stderr.puts *$!.backtrace end end # debugging code end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/