summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-20 17:53:46 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-23 13:37:40 +0900
commit6298ec2875a6f1a1e75698c96ceac94362f20bcf (patch)
tree70143b5c6d6df6dfdc7a0ea2707a050fbdc59131 /test/ruby/test_io.rb
parent588a86e32c9e646823e1436e53ffe1c37206abd3 (diff)
Warn non-nil `$\` [Feature #14240]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2920
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index af2b08de95..a6df5c8b08 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -2568,8 +2568,10 @@ class TestIO < Test::Unit::TestCase
end
def test_print_separators
- EnvUtil.suppress_warning {$, = ':'}
- $\ = "\n"
+ EnvUtil.suppress_warning {
+ $, = ':'
+ $\ = "\n"
+ }
pipe(proc do |w|
w.print('a')
EnvUtil.suppress_warning {w.print('a','b','c')}