diff options
Diffstat (limited to 'test/ruby')
-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')} |