From 3ee0648dc7a5465b2cbadd7246fc2edbd676d759 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 18 Apr 2019 21:56:55 +0000 Subject: io.c: warn non-nil $, * array.c (rb_ary_join_m): warn use of non-nil $,. * io.c (rb_output_fs_setter): warn when set to non-nil value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby') diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index f646c41a69..7f407647ec 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2480,7 +2480,7 @@ class TestIO < Test::Unit::TestCase end def test_print_separators - $, = ':' + EnvUtil.suppress_warning {$, = ':'} $\ = "\n" pipe(proc do |w| w.print('a') -- cgit v1.2.3