summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-26 02:11:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-26 02:11:24 +0000
commit4f5357689b3fa773791727e614567f2ec137b464 (patch)
treed4f9b330f93d9bb7a02f26b80a914e5580dd0ada /test/lib
parent999e4db6f0ecb9fa819c8b545c759f82921b3a2f (diff)
leakchecker.rb: no conversion
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/leakchecker.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/lib/leakchecker.rb b/test/lib/leakchecker.rb
index be4b83681f..8094fcbde7 100644
--- a/test/lib/leakchecker.rb
+++ b/test/lib/leakchecker.rb
@@ -198,6 +198,10 @@ class LeakChecker
end
def puts(*a)
- MiniTest::Unit.output.puts(*a)
+ output = MiniTest::Unit.output
+ if defined?(output.set_encoding)
+ output.set_encoding(nil, nil)
+ end
+ output.puts(*a)
end
end