ruby-changes:62476
From: David <ko1@a...>
Date: Fri, 31 Jul 2020 21:08:52 +0900 (JST)
Subject: [ruby-changes:62476] aa4ecfe7f7 (master): [rubygems/rubygems] Revert "Disallow warnings to creep into the test suite"
https://git.ruby-lang.org/ruby.git/commit/?id=aa4ecfe7f7 From aa4ecfe7f7e69a2c477dd9e0cc8ffbe482bbe4cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Sat, 11 Jul 2020 08:52:20 +0200 Subject: [rubygems/rubygems] Revert "Disallow warnings to creep into the test suite" This reverts commit 694e6afee769ffb3168a564ee7d315af2a934993. It was failed on Windows and I'm unsure why. Also, the check seems brittle since it could fail potentially fail because of warnings outside of our control. https://github.com/rubygems/rubygems/commit/908e9344dd diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index a724976..69f6e6d 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -289,10 +289,6 @@ class Gem::TestCase < Minitest::Test https://github.com/ruby/ruby/blob/trunk/lib/rubygems/test_case.rb#L289 # or <tt>i686-darwin8.10.1</tt> otherwise. def setup - @orig_stderr = $stderr.dup - @captured_stderr = Tempfile.new("captured_stderr") - $stderr.reopen @captured_stderr - @orig_env = ENV.to_hash @tmp = File.expand_path("tmp") @@ -466,16 +462,6 @@ class Gem::TestCase < Minitest::Test https://github.com/ruby/ruby/blob/trunk/lib/rubygems/test_case.rb#L462 end @back_ui.close - - $stderr.rewind - err = @captured_stderr.read - assert_empty err - ensure - @captured_stderr.unlink - - $stderr.reopen @orig_stderr - @orig_stderr.close - @captured_stderr.close end def credential_setup -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/