mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 10:33:58 +02:00
[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.
908e9344dd
This commit is contained in:
parent
e0bfc77824
commit
aa4ecfe7f7
Notes:
git
2020-07-31 21:08:08 +09:00
1 changed files with 0 additions and 14 deletions
|
@ -289,10 +289,6 @@ class Gem::TestCase < Minitest::Test
|
||||||
# or <tt>i686-darwin8.10.1</tt> otherwise.
|
# or <tt>i686-darwin8.10.1</tt> otherwise.
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@orig_stderr = $stderr.dup
|
|
||||||
@captured_stderr = Tempfile.new("captured_stderr")
|
|
||||||
$stderr.reopen @captured_stderr
|
|
||||||
|
|
||||||
@orig_env = ENV.to_hash
|
@orig_env = ENV.to_hash
|
||||||
@tmp = File.expand_path("tmp")
|
@tmp = File.expand_path("tmp")
|
||||||
|
|
||||||
|
@ -466,16 +462,6 @@ class Gem::TestCase < Minitest::Test
|
||||||
end
|
end
|
||||||
|
|
||||||
@back_ui.close
|
@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
|
end
|
||||||
|
|
||||||
def credential_setup
|
def credential_setup
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue