mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rescue if it cannnot load psych.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
09063f9d30
commit
66b0d426ed
1 changed files with 5 additions and 1 deletions
|
@ -1210,7 +1210,11 @@ end
|
|||
|
||||
def test_to_yaml_emits_syck_compat_yaml
|
||||
if YAML.const_defined?(:ENGINE) && YAML::ENGINE.syck?
|
||||
yamler, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych'
|
||||
begin
|
||||
yamler, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych'
|
||||
rescue LoadError
|
||||
skip 'cannot load psych'
|
||||
end
|
||||
end
|
||||
begin
|
||||
@a1.add_dependency "gx", "1.0.0"
|
||||
|
|
Loading…
Add table
Reference in a new issue