diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-01-14 09:57:01 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-01-14 09:57:01 -0600 |
commit | 8e6e24558b460cdadb12a24a2939eb1163ffdaf8 (patch) | |
tree | c4b946ccd9150392ede063e32c90e01ecaf4e771 /tests | |
parent | b77075de3581da7235eada8f8f101a73218d0ef9 (diff) | |
download | cryptography-8e6e24558b460cdadb12a24a2939eb1163ffdaf8.tar.gz cryptography-8e6e24558b460cdadb12a24a2939eb1163ffdaf8.tar.bz2 cryptography-8e6e24558b460cdadb12a24a2939eb1163ffdaf8.zip |
use setenv so we don't have to import os
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/bindings/test_openssl.py | 4 |
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): |