summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-28 13:56:24 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-28 13:56:24 +0000
commite76a19ece3f455a47e839c924aa0e89d87a06135 (patch)
treea2e62a7f9bc4d55d1438ce1857405d4505eb2504
parentf510d9f3c471ffe037a2154968acd75264ae4ef6 (diff)
* 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
-rw-r--r--ChangeLog6
-rw-r--r--test/psych/visitors/test_yaml_tree.rb1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b53a44a7b9..7c4ddecbba0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/test/psych/visitors/test_yaml_tree.rb b/test/psych/visitors/test_yaml_tree.rb
index 292710b00df..758cfaed726 100644
--- a/test/psych/visitors/test_yaml_tree.rb
+++ b/test/psych/visitors/test_yaml_tree.rb
@@ -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)