diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-01-20 17:53:46 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-02-23 13:37:40 +0900 |
commit | 6298ec2875a6f1a1e75698c96ceac94362f20bcf (patch) | |
tree | 70143b5c6d6df6dfdc7a0ea2707a050fbdc59131 /test/ruby/test_io.rb | |
parent | 588a86e32c9e646823e1436e53ffe1c37206abd3 (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.rb | 6 |
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')} |