aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/bindings
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-01-14 07:49:18 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-01-14 07:49:18 -0600
commitb77075de3581da7235eada8f8f101a73218d0ef9 (patch)
treef952ca26572c36f8eea127db0a411bba8b34598b /tests/hazmat/bindings
parent539dda8cadc5c011f50ed49f81cd89abbe32bb0d (diff)
downloadcryptography-b77075de3581da7235eada8f8f101a73218d0ef9.tar.gz
cryptography-b77075de3581da7235eada8f8f101a73218d0ef9.tar.bz2
cryptography-b77075de3581da7235eada8f8f101a73218d0ef9.zip
monkeypatch PYCA_WINDOWS_LINK_TYPE in the tests to fix #1624
Diffstat (limited to 'tests/hazmat/bindings')
-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):