From 3f50943b0378e32aef13a93f14dfacebdf5b0a1c Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 1 Dec 2012 03:30:55 +0000 Subject: 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 --- test/rubygems/test_gem_specification.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/rubygems') diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index 2e7fe689bb..fa2f0cef75 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -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 -- cgit v1.2.3