mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/net/http/test_http.rb: remove temporally files in ensure clause.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6fde18fe1c
commit
b0fe688676
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Nov 19 16:36:57 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/net/http/test_http.rb: remove temporally files in ensure clause.
|
||||
|
||||
Sat Nov 19 08:18:41 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/net/http/test_http.rb: remove temporally files.
|
||||
|
|
|
@ -360,7 +360,8 @@ __EOM__
|
|||
_test_set_form_multipart(http, false, data, expected)
|
||||
_test_set_form_multipart(http, true, data, expected)
|
||||
}
|
||||
file.close(true)
|
||||
ensure
|
||||
file.close! if file
|
||||
end
|
||||
|
||||
def _test_set_form_urlencoded(http, data)
|
||||
|
@ -421,7 +422,8 @@ __EOM__
|
|||
res = http.request req
|
||||
#assert_equal(expected, res.body)
|
||||
}
|
||||
file.close(true)
|
||||
ensure
|
||||
file.close! if file
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue