From 6d82be499b468242214ad701f6f86c5c60c01662 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Thu, 4 Apr 2024 14:10:23 +0900 Subject: [PATCH] Prevent a warning ``` [19889/25837] TestArgf#test_puts-e:1: warning: ARGF.class#write is outdated interface which accepts just one argument = 0.06 s ``` https://rubyci.s3.amazonaws.com/debian12/ruby-master/log/20240404T033003Z.log.html.gz --- test/ruby/test_argf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_argf.rb b/test/ruby/test_argf.rb index 39c5e88893..860e7454b7 100644 --- a/test/ruby/test_argf.rb +++ b/test/ruby/test_argf.rb @@ -1154,7 +1154,7 @@ class TestArgf < Test::Unit::TestCase t = make_tempfile0("argf-#{__method__}") t.puts 'bar' t.close - ruby('-pi-', '-e', "print ARGF.puts('foo')", t.path) do |f| + ruby('-pi-', '-W0', '-e', "print ARGF.puts('foo')", t.path) do |f| end assert_equal("foo\nbar\n", File.read(t.path)) end