Revert "Gate: fix AttributeError: load_pem_x509_csr"

Cryptography 1.3.1 has been released which closes this bug, meaning this
patch can now be reverted. As the problem has now been fixed.

https://github.com/pyca/cryptography/issues/2844 is now closed.

This reverts commit a75b5fb77a.

Change-Id: I387ff9fe099460f98303cf930b79db1632791ccd
This commit is contained in:
Niall Bunting 2016-04-01 09:44:11 +00:00
parent e2def6f8d3
commit a87603bd90
1 changed files with 1 additions and 3 deletions

View File

@ -183,9 +183,7 @@ class TestX509(base.BaseTestCase):
self.assertInClientExtensions(cert)
# Notes(eliqiao): Remove this '_module' after cryptography issue fixed
# https://github.com/pyca/cryptography/issues/2844
@mock.patch('cryptography.x509._module.load_pem_x509_csr')
@mock.patch('cryptography.x509.load_pem_x509_csr')
@mock.patch('six.b')
def test_sign_with_unicode_csr(self, mock_six, mock_load_pem):
ca_key = self._generate_private_key()