aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/bindings/test_openssl.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat/bindings/test_openssl.py')
-rw-r--r--tests/hazmat/bindings/test_openssl.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/hazmat/bindings/test_openssl.py b/tests/hazmat/bindings/test_openssl.py
index bfc5cdac..8cc81cdc 100644
--- a/tests/hazmat/bindings/test_openssl.py
+++ b/tests/hazmat/bindings/test_openssl.py
@@ -4,8 +4,6 @@
from __future__ import absolute_import, division, print_function
-import os
-
import pytest
from cryptography.hazmat.bindings.openssl.binding import (
@@ -138,7 +136,7 @@ class TestOpenSSL(object):
def test_libraries(self, monkeypatch):
assert _get_libraries("darwin") == ["ssl", "crypto"]
- monkeypatch.setitem(os.environ, 'PYCA_WINDOWS_LINK_TYPE', 'static')
+ monkeypatch.setenv('PYCA_WINDOWS_LINK_TYPE', 'static')
assert "ssleay32mt" in _get_libraries("win32")
def test_windows_static_dynamic_libraries(self):