diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-03-24 15:22:57 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-03-24 15:41:37 +0900 |
commit | 2759cf46f28b1f5ba52f6b7686fd23cb8d792ede (patch) | |
tree | c0a5a4162c5116efe3f2293c332c9e019449a0ec /test/ruby/test_thread_queue.rb | |
parent | 3e7d1cbceb2b8757a4c07431c8a3a97354506dfd (diff) |
Write keyword arguments directly
`assert_normal_exit` uses keyword arguments since 2013, commit
05dd6b194cc29961a7cecfd5c3852f06dd56a871.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7589
Diffstat (limited to 'test/ruby/test_thread_queue.rb')
-rw-r--r-- | test/ruby/test_thread_queue.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_thread_queue.rb b/test/ruby/test_thread_queue.rb index 709d0ece5c..8cb29634e0 100644 --- a/test/ruby/test_thread_queue.rb +++ b/test/ruby/test_thread_queue.rb @@ -211,9 +211,9 @@ class TestThreadQueue < Test::Unit::TestCase timeout = EnvUtil.apply_timeout_scale(60) total_count = 250 begin - assert_normal_exit(<<-"_eom", bug5343, **{:timeout => timeout, :chdir=>d}) + assert_normal_exit(<<-"_eom", bug5343, timeout: timeout, chdir: d) #{total_count}.times do |i| - open("test_thr_kill_count", "w") {|f| f.puts i } + File.open("test_thr_kill_count", "w") {|f| f.puts i } queue = Thread::Queue.new r, w = IO.pipe th = Thread.start { |