mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
remove temporally files explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
119e97479d
commit
242e2aaec2
1 changed files with 2 additions and 1 deletions
|
@ -28,11 +28,12 @@ class TestArgf < Test::Unit::TestCase
|
|||
@tmps.each {|t|
|
||||
bak = t.path + ".bak"
|
||||
File.unlink bak if File.file? bak
|
||||
t.close(true)
|
||||
}
|
||||
end
|
||||
|
||||
def make_tempfile
|
||||
t = Tempfile.new("argf-foo")
|
||||
t = Tempfile.new("argf-qux")
|
||||
t.puts "foo"
|
||||
t.puts "bar"
|
||||
t.puts "baz"
|
||||
|
|
Loading…
Reference in a new issue