File: 0005-tweak-test-dep-change.patch

package info (click to toggle)
ruby-httpclient 2.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,724 kB
  • sloc: ruby: 9,544; makefile: 10; sh: 2
file content (21 lines) | stat: -rw-r--r-- 914 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Tweak tests to support latest version of dependency
 One of the test makes sure that SSLv3 is not supported by expecting an 
 SSLError to be raised. But in latest versions of openssl, an ArgumentError 
 is raised in such situations. Patched the test to use that instead.
Author: Balasankar C <balasankarc@autistici.org>
Last-Update: 2016-01-12
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/test/test_ssl.rb
+++ b/test/test_ssl.rb
@@ -256,8 +256,8 @@ end
   def test_no_sslv3
     omit('TODO: SSLv3 is not supported in many environments. re-enable when disable TLSv1')
     teardown_server
-    setup_server_with_ssl_version(:SSLv3)
-    assert_raise(OpenSSL::SSL::SSLError) do
+    assert_raise(ArgumentError) do
+      setup_server_with_ssl_version(:SSLv3)
       @client.ssl_config.verify_mode = nil
       @client.get("https://localhost:#{serverport}/hello")
     end