Skip to content

Commit

Permalink
Merge pull request fedora-infra#482 from jeremycline/precise-lib-chec…
Browse files Browse the repository at this point in the history
…k-tests

Alter how the tests determine if cryptography is available
  • Loading branch information
jeremycline authored Sep 29, 2017
2 parents 1c57d60 + a3b9ac5 commit 73425a9
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions fedmsg/tests/crypto/test_x509.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,14 @@
import mock
import six

_m2crypto, _cryptography = False, False
try:
import M2Crypto # noqa: F401
import m2ext # noqa: F401
_m2crypto = True
except ImportError:
pass
try:
import cryptography # noqa
import OpenSSL # noqa
_cryptography = True
except ImportError:
pass

try:
from unittest import skipIf, TestCase, expectedFailure
except ImportError:
from unittest2 import skipIf, TestCase, expectedFailure

from fedmsg import crypto # noqa: E402
from fedmsg.crypto.x509 import _m2crypto
from fedmsg.crypto.x509_ng import _cryptography
from fedmsg.tests.base import SSLDIR # noqa: E402


Expand Down

0 comments on commit 73425a9

Please sign in to comment.