summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-07-11 08:52:20 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-31 21:07:19 +0900
commitaa4ecfe7f7e69a2c477dd9e0cc8ffbe482bbe4cb (patch)
tree97beb9b931e9bb92b15a3633b30f0d6d57c3b5fc
parente0bfc77824d2fec95965ff4b46524cc8a85bc24a (diff)
[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
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3379
-rw-r--r--lib/rubygems/test_case.rb14
1 files changed, 0 insertions, 14 deletions
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
# 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
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