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

* test/psych/visitors/test_yaml_tree.rb (test_struct_const): remove

Struct::Foo which affects test/ruby/test_struct to warn redefining
  constant.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2010-04-28 13:56:24 +00:00
parent f510d9f3c4
commit e76a19ece3
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Wed Apr 28 22:26:55 2010 Yusuke Endoh <mame@tsg.ne.jp>
* test/psych/visitors/test_yaml_tree.rb (test_struct_const): remove
Struct::Foo which affects test/ruby/test_struct to warn redefining
constant.
Wed Apr 28 18:04:48 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* time.c (time_timespec): use rb_check_funcall.

View file

@ -23,6 +23,7 @@ module Psych
def test_struct_const
foo = Struct.new("Foo", :bar)
assert_cycle foo.new('bar')
Struct.instance_eval { remove_const(:Foo) }
end
A = Struct.new(:foo)