Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pyopenssl/files: pyopenssl-0.9-tests.patch
Date: Mon, 22 Jun 2009 06:15:28
Message-Id: E1MIcoQ-0003nJ-IT@stork.gentoo.org
1 arfrever 09/06/22 06:15:26
2
3 Added: pyopenssl-0.9-tests.patch
4 Log:
5 Fix tests (bug #275017).
6 (Portage version: 13659-svn/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-python/pyopenssl/files/pyopenssl-0.9-tests.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyopenssl/files/pyopenssl-0.9-tests.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyopenssl/files/pyopenssl-0.9-tests.patch?rev=1.1&content-type=text/plain
13
14 Index: pyopenssl-0.9-tests.patch
15 ===================================================================
16 --- test/test_ssl.py
17 +++ test/test_ssl.py
18 @@ -10,12 +10,7 @@
19 from os import makedirs, symlink
20 from os.path import join
21
22 -try:
23 - # Prefer Twisted's TestCase, since it supports things like skips.
24 - from twisted.trial.unittest import TestCase
25 -except ImportError:
26 - # Fall back to the stdlib TestCase though, since it kind of works.
27 - from unittest import TestCase, main
28 +from unittest import TestCase, main
29
30 from OpenSSL.crypto import TYPE_RSA, FILETYPE_PEM, PKey, dump_privatekey, load_certificate, load_privatekey
31 from OpenSSL.SSL import WantReadError, Context, Connection, Error
32 @@ -221,7 +221,7 @@
33 self._load_verify_locations_test(None, capath)
34
35
36 - def test_set_default_verify_paths(self):
37 + def _test_set_default_verify_paths(self):
38 """
39 L{Context.set_default_verify_paths} causes the platform-specific CA
40 certificate locations to be used for verification purposes.