ruby-changes:41067
From: naruse <ko1@a...>
Date: Wed, 16 Dec 2015 14:26:11 +0900 (JST)
Subject: [ruby-changes:41067] naruse:r53142 (trunk): Exception#backtrace may be nil if it is manually created
naruse 2015-12-16 14:25:46 +0900 (Wed, 16 Dec 2015) New Revision: 53142 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53142 Log: Exception#backtrace may be nil if it is manually created Modified files: trunk/test/lib/test/unit/parallel.rb Index: test/lib/test/unit/parallel.rb =================================================================== --- test/lib/test/unit/parallel.rb (revision 53141) +++ test/lib/test/unit/parallel.rb (revision 53142) @@ -139,7 +139,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/parallel.rb#L139 rescue Errno::EPIPE rescue Exception => e begin - trace = e.backtrace + trace = e.backtrace || ['unknown method'] err = ["#{trace.shift}: #{e.message} (#{e.class})"] + trace.map{|t| t.prepend("\t") } _report "bye", Marshal.dump(err.join("\n")) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/