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:
parent
9a951c0931
commit
41eba95920
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue