summaryrefslogtreecommitdiff
path: root/test/lib/test/unit
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-30 03:06:47 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-30 03:06:47 +0000
commit0dea3e1a43f864e48acb3135c0e3885ff6f5a372 (patch)
tree9ba88d4d8b1cbf4d50df10285376fe4372fd5555 /test/lib/test/unit
parentb901b8754373038724936f1d32a0773dc65f0f64 (diff)
* 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
Diffstat (limited to 'test/lib/test/unit')
-rw-r--r--test/lib/test/unit/parallel.rb4
1 files changed, 2 insertions, 2 deletions
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