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
@ -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…
x
Reference in New Issue
Block a user