diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/open-uri/test_open-uri.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/open-uri/test_open-uri.rb b/test/open-uri/test_open-uri.rb index 5f501d16cc..916b2af23f 100644 --- a/test/open-uri/test_open-uri.rb +++ b/test/open-uri/test_open-uri.rb @@ -152,7 +152,7 @@ class TestOpenURI < Test::Unit::TestCase assert_equal("200", f.status[0]) assert_equal("without_block", f.read) ensure - f.close + f.close if f && !f.closed? end } end |