summaryrefslogtreecommitdiff
path: root/test/ruby/test_thread.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-28 18:31:42 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-28 23:21:37 +0900
commit2bb217bfb7703ba923d0e1d69b2f2dddb66cc7d6 (patch)
tree0a0834961da53f40ad049c10dd6b63d53245eba3 /test/ruby/test_thread.rb
parentd233f9175cdb869a1928234f9c24a9d5d13f437f (diff)
Removed unused variables
Diffstat (limited to 'test/ruby/test_thread.rb')
-rw-r--r--test/ruby/test_thread.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index f133126934..3283e30122 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -882,15 +882,15 @@ class TestThread < Test::Unit::TestCase
begin
begin
Thread.pass until done
- rescue => e
+ rescue
q.push :ng1
end
begin
Thread.handle_interrupt(Object => :immediate){} if Thread.pending_interrupt?
- rescue RuntimeError => e
+ rescue RuntimeError
q.push :ok
end
- rescue => e
+ rescue
q.push :ng2
ensure
q.push :ng3
@@ -1189,12 +1189,10 @@ q.pop
bug8433 = '[ruby-core:55102] [Bug #8433]'
mutex = Thread::Mutex.new
- flag = false
mutex.lock
th = Thread.new do
mutex.synchronize do
- flag = true
sleep
end
end