diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-14 15:42:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-14 15:42:27 +0900 |
commit | 0195966ba26b9cec9a8b32a2dc502ad753764d2a (patch) | |
tree | 7aaf08a695a6f8c9073811ab550dc8fa20d66b84 /spec/ruby | |
parent | 3e763883eab8435c6ebf9427b9bc49b95a1c7175 (diff) | |
download | ruby-0195966ba26b9cec9a8b32a2dc502ad753764d2a.tar.gz |
Suppress warnings for Thread.exclusive
Diffstat (limited to 'spec/ruby')
-rw-r--r-- | spec/ruby/core/thread/exclusive_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/ruby/core/thread/exclusive_spec.rb b/spec/ruby/core/thread/exclusive_spec.rb index a96ebe749d..ec35ba542b 100644 --- a/spec/ruby/core/thread/exclusive_spec.rb +++ b/spec/ruby/core/thread/exclusive_spec.rb @@ -1,8 +1,15 @@ require_relative '../../spec_helper' describe "Thread.exclusive" do + verbose = Object + before :each do ScratchPad.clear + verbose, $VERBOSE = $VERBOSE, nil + end + + after :each do + $VERBOSE = verbose end it "yields to the block" do |