From 0dea3e1a43f864e48acb3135c0e3885ff6f5a372 Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 30 May 2014 03:06:47 +0000 Subject: * test/lib/test/unit/parallel.rb (_run_suite): orig_stdout may be nil though I don't know the reason. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/lib/test/unit/parallel.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/lib/test/unit') diff --git a/test/lib/test/unit/parallel.rb b/test/lib/test/unit/parallel.rb index d8f8e8f1e7..3cf0c77256 100644 --- a/test/lib/test/unit/parallel.rb +++ b/test/lib/test/unit/parallel.rb @@ -77,8 +77,8 @@ module Test return result ensure MiniTest::Unit.output = orig_stdout - $stdin = orig_stdin - $stdout = orig_stdout + $stdin = orig_stdin if orig_stdin + $stdout = orig_stdout if orig_stdout o.close if o && !o.closed? i.close if i && !i.closed? end -- cgit v1.2.3