From 59a40feec27790cbe07955eb00f1bc125c8d95e8 Mon Sep 17 00:00:00 2001 From: "S.H" Date: Fri, 7 Feb 2020 19:36:11 +0900 Subject: [PATCH] remove warning & support multi-run test for test/psych_test_yaml.rb (#2887) --- test/psych/test_yaml.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/psych/test_yaml.rb b/test/psych/test_yaml.rb index 5fa759c981..88787d35cc 100644 --- a/test/psych/test_yaml.rb +++ b/test/psych/test_yaml.rb @@ -1034,6 +1034,7 @@ EOY end def test_ruby_struct + Struct.send(:remove_const, :MyBookStruct) if Struct.const_defined?(:MyBookStruct) # Ruby structures book_struct = Struct::new( "MyBookStruct", :author, :title, :year, :isbn ) assert_to_yaml(