mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove tempfiles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8559c4c125
commit
8735e21fbb
2 changed files with 4 additions and 0 deletions
|
@ -491,6 +491,8 @@ EOT
|
|||
assert_equal @hash, JSON.load(stringio)
|
||||
assert_equal nil, JSON.load(nil)
|
||||
assert_equal nil, JSON.load('')
|
||||
ensure
|
||||
tempfile.close!
|
||||
end
|
||||
|
||||
def test_load_with_options
|
||||
|
|
|
@ -336,6 +336,8 @@ class TestFile < Test::Unit::TestCase
|
|||
end
|
||||
assert_in_delta t0+6, stat.atime.to_f, delta
|
||||
rescue NotImplementedError
|
||||
ensure
|
||||
file.close!
|
||||
end
|
||||
|
||||
def test_chmod_m17n
|
||||
|
|
Loading…
Reference in a new issue