From 551abfadc9e9375daf4354c76020595ad9b34c41 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 25 May 2019 10:25:13 -0400 Subject: 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 --- tests/hazmat/backends/test_openssl.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tests') 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' -- cgit v1.2.3