ruby-changes:63335
From: Yusuke <ko1@a...>
Date: Tue, 13 Oct 2020 13:41:21 +0900 (JST)
Subject: [ruby-changes:63335] 76e09815ae (master): test/ruby/test_fiber.rb: Suppress "assigned but unused variable" warnings
https://git.ruby-lang.org/ruby.git/commit/?id=76e09815ae From 76e09815ae1b8f64d67c1a75a7b9b69267f30081 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Tue, 13 Oct 2020 13:40:44 +0900 Subject: test/ruby/test_fiber.rb: Suppress "assigned but unused variable" warnings diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb index dc46b55..8729a86 100644 --- a/test/ruby/test_fiber.rb +++ b/test/ruby/test_fiber.rb @@ -185,7 +185,6 @@ class TestFiber < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_fiber.rb#L185 end def test_terminate_transferred_fiber - root_fiber = Fiber.current log = [] fa1 = fa2 = fb1 = r1 = nil @@ -315,10 +314,10 @@ class TestFiber < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_fiber.rb#L314 } fa1 = Fiber.new{ - fa2 = Fiber.new{ root_fiber.transfer } + _fa2 = Fiber.new{ root_fiber.transfer } } fb1 = Fiber.new{ - fb2 = Fiber.new{ root_fiber.transfer } + _fb2 = Fiber.new{ root_fiber.transfer } } fa1.transfer fb1.transfer @@ -332,7 +331,6 @@ class TestFiber < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_fiber.rb#L331 end def test_prohibit_transfer_to_yielding_fiber - root_fiber = Fiber.current f1 = f2 = f3 = nil f1 = Fiber.new{ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/