test/test_tryopen.rb in kgio-2.11.2 vs test/test_tryopen.rb in kgio-2.11.3

- old
+ new

@@ -57,11 +57,12 @@ tmp = Tempfile.new "tryopen" path = tmp.path tmp.close! file = Kgio::File.tryopen(path, IO::RDWR|IO::CREAT, 0000) assert_equal 0100000, File.stat(path).mode - ensure - File.unlink path + file.close + ensure + File.unlink path end require "benchmark" def test_benchmark nr = 1000000