ruby-changes:46680
From: usa <ko1@a...>
Date: Fri, 19 May 2017 21:44:52 +0900 (JST)
Subject: [ruby-changes:46680] usa:r58795 (trunk): Of course, opened file is not able to unlink on Windows
usa 2017-05-19 21:44:46 +0900 (Fri, 19 May 2017) New Revision: 58795 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58795 Log: Of course, opened file is not able to unlink on Windows * test/test_tempfile.rb (test_create_with_block): close the tempfile before unlink. fixed a failure on Windows introduced at r58791. Modified files: trunk/test/test_tempfile.rb Index: test/test_tempfile.rb =================================================================== --- test/test_tempfile.rb (revision 58794) +++ test/test_tempfile.rb (revision 58795) @@ -346,6 +346,7 @@ puts Tempfile.new('foo').path https://github.com/ruby/ruby/blob/trunk/test/test_tempfile.rb#L346 Tempfile.create("tempfile-create") {|f| path = f.path + f.close File.unlink(f.path) } assert_file.not_exist?(path) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/