1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_gem_specification.rb: suppress warnings

* test/rubygems/test_gem_specification.rb (with_syck): we all know
  that syck has been removed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-12-01 03:30:55 +00:00
parent afb02bbe92
commit 3f50943b03

View file

@ -1,3 +1,4 @@
# -*- coding: us-ascii -*-
require 'rubygems/test_case'
require 'stringio'
require 'rubygems/specification'
@ -1945,10 +1946,13 @@ end
begin
require "yaml"
old_engine = YAML::ENGINE.yamler
verbose, $VERBOSE = $VERBOSE, nil
YAML::ENGINE.yamler = 'syck'
load 'rubygems/syck_hack.rb'
rescue NameError
# probably on 1.8, ignore
ensure
$VERBOSE = verbose
end
yield