1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Suppress keywords warning in ruby 2.7

https://github.com/rubygems/rubygems/commit/892bfc11fe
This commit is contained in:
Nobuyoshi Nakada 2019-09-26 20:11:24 +09:00
parent caa9d0bd78
commit 871005bdd2
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -520,7 +520,7 @@ class TestGemRequire < Gem::TestCase
def test_no_other_behavioral_changes_with_kernel_warn def test_no_other_behavioral_changes_with_kernel_warn
lib = File.realpath("../../../lib", __FILE__) lib = File.realpath("../../../lib", __FILE__)
Dir.mktmpdir("warn_test") do |dir| Dir.mktmpdir("warn_test") do |dir|
File.write(dir + "/main.rb", "warn({x:1}, {y:2}, {})\n") File.write(dir + "/main.rb", "warn({x:1}, {y:2}, [])\n")
_, err = capture_subprocess_io do _, err = capture_subprocess_io do
system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb") system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
end end