ruby-changes:56712
From: Yusuke <ko1@a...>
Date: Wed, 31 Jul 2019 11:28:33 +0900 (JST)
Subject: [ruby-changes:56712] Yusuke Endoh: 4979ba38fa (master): test/rubygems/test_gem_remote_fetcher.rb: suppress deprecation warnings
https://git.ruby-lang.org/ruby.git/commit/?id=4979ba38fa From 4979ba38fa070b4b9480f0da4b7c827e9eb768ab Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 31 Jul 2019 11:27:59 +0900 Subject: test/rubygems/test_gem_remote_fetcher.rb: suppress deprecation warnings diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb index 7eaaca7..92ff350 100644 --- a/test/rubygems/test_gem_remote_fetcher.rb +++ b/test/rubygems/test_gem_remote_fetcher.rb @@ -158,7 +158,9 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg== https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_remote_fetcher.rb#L158 @fetcher = fetcher e = assert_raises ArgumentError do - fetcher.fetch_size 'gems.example.com/yaml' + Gem::Deprecate.skip_during do + fetcher.fetch_size 'gems.example.com/yaml' + end end assert_equal 'uri scheme is invalid: nil', e.message @@ -173,7 +175,9 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg== https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_remote_fetcher.rb#L175 uri = 'http://gems.example.com/yaml' e = assert_raises Gem::RemoteFetcher::FetchError do - fetcher.fetch_size uri + Gem::Deprecate.skip_during do + fetcher.fetch_size uri + end end assert_equal "SocketError: oops (#{uri})", e.message @@ -182,7 +186,9 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg== https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_remote_fetcher.rb#L186 def test_no_proxy use_ui @stub_ui do assert_data_from_server @fetcher.fetch_path(@server_uri) - assert_equal SERVER_DATA.size, @fetcher.fetch_size(@server_uri) + Gem::Deprecate.skip_during do + assert_equal SERVER_DATA.size, @fetcher.fetch_size(@server_uri) + end end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/