test_psych.rb: close Tempfile
* test/psych/test_psych.rb (test_load_file_with_fallback): fix Tempfile leak. https://github.com/tenderlove/psych/pull/288 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c2bf7e6f7d
commit
c58c902576
@ -1,3 +1,8 @@
|
|||||||
|
Tue Aug 23 10:34:40 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/psych/test_psych.rb (test_load_file_with_fallback): fix
|
||||||
|
Tempfile leak. https://github.com/tenderlove/psych/pull/288
|
||||||
|
|
||||||
Tue Aug 23 10:15:01 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Aug 23 10:15:01 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* string.c (rb_fs_setter): check and convert $; value at
|
* string.c (rb_fs_setter): check and convert $; value at
|
||||||
|
@ -145,8 +145,9 @@ class TestPsych < Psych::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_load_file_with_fallback
|
def test_load_file_with_fallback
|
||||||
t = Tempfile.create(['empty', 'yml'])
|
Tempfile.create(['empty', 'yml']) {|t|
|
||||||
assert_equal Hash.new, Psych.load_file(t.path, Hash.new)
|
assert_equal Hash.new, Psych.load_file(t.path, Hash.new)
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_parse_file
|
def test_parse_file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user