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

test/ruby/test_fiber.rb: Suppress "assigned but unused variable" warnings

This commit is contained in:
Yusuke Endoh 2020-10-13 13:40:44 +09:00
parent 0b1b0f134e
commit 76e09815ae

View file

@ -185,7 +185,6 @@ class TestFiber < Test::Unit::TestCase
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
}
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
end
def test_prohibit_transfer_to_yielding_fiber
root_fiber = Fiber.current
f1 = f2 = f3 = nil
f1 = Fiber.new{