diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2019-05-25 10:25:13 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2019-05-25 10:25:13 -0400 |
commit | 551abfadc9e9375daf4354c76020595ad9b34c41 (patch) | |
tree | e114676d40ade51feb6e1635fc7e13fdba1d925b /tests/hazmat | |
parent | 98d06e7c0814f91a6ffd06b80996814b4789ff64 (diff) | |
download | cryptography-551abfadc9e9375daf4354c76020595ad9b34c41.tar.gz cryptography-551abfadc9e9375daf4354c76020595ad9b34c41.tar.bz2 cryptography-551abfadc9e9375daf4354c76020595ad9b34c41.zip |
we don't have these mac builders any more (#4892)
* we don't have these mac builders any more
let's see if we get coverage from azure like we should!
* remove a branch we can't cover in tests
* remove unused import
Diffstat (limited to 'tests/hazmat')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index b7c7e598..8e765dd4 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -10,8 +10,6 @@ import subprocess import sys import textwrap -from pkg_resources import parse_version - import pytest from cryptography import x509 @@ -275,11 +273,7 @@ class TestOpenSSLRandomEngine(object): if sys.platform.startswith('linux'): assert name in ['getrandom', '/dev/urandom'] if sys.platform == 'darwin': - # macOS 10.12+ supports getentropy - if parse_version(os.uname()[2]) >= parse_version("16.0"): - assert name == 'getentropy' - else: - assert name == '/dev/urandom' + assert name in ['getentropy', '/dev/urandom'] if sys.platform == 'win32': assert name == 'CryptGenRandom' |