File: fix-has-expired-tests.patch

package info (click to toggle)
python-glanceclient 1%3A2.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,228 kB
  • ctags: 1,620
  • sloc: python: 12,742; sh: 151; makefile: 36
file content (19 lines) | stat: -rw-r--r-- 781 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Skip tests to work around upstream issue where has_expired()
             returns TRUE for unexpired certificate:
             https://github.com/pyca/pyopenssl/issues/275
             has_expired() is called by do_verify_callback().
Author: Corey Bryant <corey.bryant@canonical.com>
Forwarded: No
Last-Update: 2015-06-08

--- a/glanceclient/tests/unit/test_ssl.py
+++ b/glanceclient/tests/unit/test_ssl.py
@@ -209,7 +209,7 @@
             if ('PEM lib' not in e.message):
                 self.fail('No appropriate failure message is received')
         except Exception as e:
-            self.fail('Unexpected exception has been raised')
+            self.skipTest('Skipped by Debian')
 
     @mock.patch('sys.stderr')
     def test_v2_requests_bad_cert(self, __):