aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/hazmat/bindings/test_openssl.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py
index 8f89232b..bfc5cdac 100644
--- a/tests/hazmat/bindings/test_openssl.py
+++ b/tests/hazmat/bindings/test_openssl.py
@@ -4,6 +4,8 @@
from __future__ import absolute_import, division, print_function
+import os
+
import pytest
from cryptography.hazmat.bindings.openssl.binding import (
@@ -134,8 +136,9 @@ class TestOpenSSL(object):
assert resp == expected_options
assert b.lib.SSL_get_mode(ssl) == expected_options
- def test_libraries(self):
+ def test_libraries(self, monkeypatch):
assert _get_libraries("darwin") == ["ssl", "crypto"]
+ monkeypatch.setitem(os.environ, 'PYCA_WINDOWS_LINK_TYPE', 'static')
assert "ssleay32mt" in _get_libraries("win32")
def test_windows_static_dynamic_libraries(self):