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
This commit is contained in:
parent
8aa8fce320
commit
6d82be499b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user