From b77075de3581da7235eada8f8f101a73218d0ef9 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 14 Jan 2015 07:49:18 -0600 Subject: monkeypatch PYCA_WINDOWS_LINK_TYPE in the tests to fix #1624 --- tests/hazmat/bindings/test_openssl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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): -- cgit v1.2.3