summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2020-02-07 19:36:11 +0900
committerGitHub <noreply@github.com>2020-02-07 19:36:10 +0900
commit59a40feec27790cbe07955eb00f1bc125c8d95e8 (patch)
tree8514014504969595fa23e7a6ffcc2598887e315a
parent38ed8cbb5f77d0fd67ae4aadc6a978b303d3c0e9 (diff)
remove warning & support multi-run test for test/psych_test_yaml.rb (#2887)
Notes
Notes: Merged-By: nurse <naruse@airemix.jp>
-rw-r--r--test/psych/test_yaml.rb1
1 files changed, 1 insertions, 0 deletions
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(