From 8735e21fbbf609ea5c613f5ba828b1d6191c1c9b Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 25 May 2014 14:32:03 +0000 Subject: Remove tempfiles. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/json/test_json.rb | 2 ++ test/ruby/test_file.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/json/test_json.rb b/test/json/test_json.rb index 6af6b32208..462650e861 100755 --- a/test/json/test_json.rb +++ b/test/json/test_json.rb @@ -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 diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index d0f11882e5..537deefed3 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -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 -- cgit v1.2.3