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:
parent
afb02bbe92
commit
3f50943b03
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue