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:
parent
caa9d0bd78
commit
871005bdd2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue