ruby-changes:15624
From: mame <ko1@a...>
Date: Wed, 28 Apr 2010 22:56:39 +0900 (JST)
Subject: [ruby-changes:15624] Ruby:r27533 (trunk): * test/psych/visitors/test_yaml_tree.rb (test_struct_const): remove
mame 2010-04-28 22:56:24 +0900 (Wed, 28 Apr 2010) New Revision: 27533 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27533 Log: * test/psych/visitors/test_yaml_tree.rb (test_struct_const): remove Struct::Foo which affects test/ruby/test_struct to warn redefining constant. Modified files: trunk/ChangeLog trunk/test/psych/visitors/test_yaml_tree.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 27532) +++ ChangeLog (revision 27533) @@ -1,3 +1,9 @@ +Wed Apr 28 22:26:55 2010 Yusuke Endoh <mame@t...> + + * 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@r...> * time.c (time_timespec): use rb_check_funcall. Index: test/psych/visitors/test_yaml_tree.rb =================================================================== --- test/psych/visitors/test_yaml_tree.rb (revision 27532) +++ test/psych/visitors/test_yaml_tree.rb (revision 27533) @@ -23,6 +23,7 @@ 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/