diff --git a/lib/open-uri.rb b/lib/open-uri.rb index d3b26e1277..155fc66650 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -150,7 +150,7 @@ module OpenURI yield io ensure if io.kind_of? Tempfile - io.close! + io.close! else io.close end diff --git a/test/psych/test_alias_and_anchor.rb b/test/psych/test_alias_and_anchor.rb index aa4773bce4..7cb5a6e52b 100644 --- a/test/psych/test_alias_and_anchor.rb +++ b/test/psych/test_alias_and_anchor.rb @@ -24,8 +24,8 @@ EOYAML def test_mri_compatibility_object_with_ivars yaml = <