1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Revert the first diff of "Use Tempfile.create instead of Tempfile.open in test_io.rb"

* This partially reverts commit dead747874.
* Windows will not allow a file to be unlinked if any file handles exist,
  see https://github.com/ruby/ruby/pull/3597
This commit is contained in:
Benoit Daloze 2020-09-27 21:31:13 +02:00
parent 9a951c0931
commit 41eba95920

View file

@ -2737,7 +2737,7 @@ __END__
def test_flush_in_finalizer1
bug3910 = '[ruby-dev:42341]'
Tempfile.create("bug3910") {|t|
tmp = Tempfile.open("bug3910") {|t|
path = t.path
t.close
fds = []
@ -2757,6 +2757,7 @@ __END__
f.close
end
}
tmp.close!
end
def test_flush_in_finalizer2