ruby-changes:34038
From: akr <ko1@a...>
Date: Sun, 25 May 2014 23:32:09 +0900 (JST)
Subject: [ruby-changes:34038] akr:r46119 (trunk): Remove tempfiles.
akr 2014-05-25 23:32:03 +0900 (Sun, 25 May 2014) New Revision: 46119 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46119 Log: Remove tempfiles. Modified files: trunk/test/json/test_json.rb trunk/test/ruby/test_file.rb Index: test/ruby/test_file.rb =================================================================== --- test/ruby/test_file.rb (revision 46118) +++ test/ruby/test_file.rb (revision 46119) @@ -336,6 +336,8 @@ class TestFile < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file.rb#L336 end assert_in_delta t0+6, stat.atime.to_f, delta rescue NotImplementedError + ensure + file.close! end def test_chmod_m17n Index: test/json/test_json.rb =================================================================== --- test/json/test_json.rb (revision 46118) +++ test/json/test_json.rb (revision 46119) @@ -491,6 +491,8 @@ EOT https://github.com/ruby/ruby/blob/trunk/test/json/test_json.rb#L491 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/