From 8e6e24558b460cdadb12a24a2939eb1163ffdaf8 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 14 Jan 2015 09:57:01 -0600 Subject: use setenv so we don't have to import os --- tests/hazmat/bindings/test_openssl.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/hazmat') 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): -- cgit v1.2.3