[前][次][番号順一覧][スレッド一覧]

ruby-changes:58238

From: Nobuyoshi <ko1@a...>
Date: Mon, 14 Oct 2019 15:42:44 +0900 (JST)
Subject: [ruby-changes:58238] 0195966ba2 (master): Suppress warnings for Thread.exclusive

https://git.ruby-lang.org/ruby.git/commit/?id=0195966ba2

From 0195966ba26b9cec9a8b32a2dc502ad753764d2a Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 14 Oct 2019 15:42:27 +0900
Subject: Suppress warnings for Thread.exclusive


diff --git a/spec/ruby/core/thread/exclusive_spec.rb b/spec/ruby/core/thread/exclusive_spec.rb
index a96ebe7..ec35ba5 100644
--- a/spec/ruby/core/thread/exclusive_spec.rb
+++ b/spec/ruby/core/thread/exclusive_spec.rb
@@ -1,8 +1,15 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/thread/exclusive_spec.rb#L1
 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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]