diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-19 07:37:22 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-19 07:37:22 +0000 |
commit | b0fe68867625cf252dd100afbc4a7776354035d7 (patch) | |
tree | c01d48961986a9fd48be3a521e16d9d7949d41a7 /test | |
parent | 6fde18fe1cb5f23270da971d15ab85d7588a06af (diff) | |
download | ruby-b0fe68867625cf252dd100afbc4a7776354035d7.tar.gz |
* 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
Diffstat (limited to 'test')
-rw-r--r-- | test/net/http/test_http.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb index c8792114b4..b9076056b4 100644 --- a/test/net/http/test_http.rb +++ b/test/net/http/test_http.rb @@ -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 |