diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2024-04-04 14:10:23 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2024-04-04 14:10:53 +0900 |
commit | 6d82be499b468242214ad701f6f86c5c60c01662 (patch) | |
tree | f6123d4de0ca6f2277e794e4734ff1ef4fa691da /test/ruby | |
parent | 8aa8fce32021263c947a7a10daa24f07ede3e4a3 (diff) |
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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_argf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |