diff --git a/test/net/http/test_httpresponse.rb b/test/net/http/test_httpresponse.rb index d57614bb73..bb4b7fbd89 100644 --- a/test/net/http/test_httpresponse.rb +++ b/test/net/http/test_httpresponse.rb @@ -93,7 +93,7 @@ EOS end assert_equal 'hello', body - end + end if Net::HTTP::HAVE_ZLIB def test_read_body_content_encoding_deflate_chunked io = dummy_io(<