From cbff19443df6ff9e5640c9fca1c78481335d2e7a Mon Sep 17 00:00:00 2001 From: k0kubun Date: Thu, 6 Dec 2018 23:16:01 +0000 Subject: test_gem_package_task.rb: suppress random failure by Bundler. http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/1500762 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem_package_task.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/rubygems/test_gem_package_task.rb b/test/rubygems/test_gem_package_task.rb index 2794ab81fb..e01f4a4043 100644 --- a/test/rubygems/test_gem_package_task.rb +++ b/test/rubygems/test_gem_package_task.rb @@ -1,9 +1,10 @@ # frozen_string_literal: true require 'rubygems/test_case' require 'rubygems' +require 'bundler/errors' begin require 'rubygems/package_task' -rescue LoadError +rescue LoadError, Bundler::GemfileNotFound end class TestGemPackageTask < Gem::TestCase -- cgit v1.2.1