diff options
Diffstat (limited to 'tests/hazmat')
-rw-r--r-- | tests/hazmat/bindings/test_utils.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/hazmat/bindings/test_utils.py b/tests/hazmat/bindings/test_utils.py index d458972e..2ba391ec 100644 --- a/tests/hazmat/bindings/test_utils.py +++ b/tests/hazmat/bindings/test_utils.py @@ -13,8 +13,6 @@ from __future__ import absolute_import, division, print_function -import sys - import pretend from cryptography.hazmat.bindings import utils @@ -23,6 +21,7 @@ from cryptography.hazmat.bindings import utils def test_create_modulename(): pretend_ffi = pretend.stub(_cdefsources=["cdef sources go here"]) source = "source code" - name = utils._create_modulename(pretend_ffi, source, sys.version, - sys.version_info) + name = utils._create_modulename(pretend_ffi, source, "2.7") assert name == "_cffi_bcba7f4bx4a14b588" + name = utils._create_modulename(pretend_ffi, source, "3.2") + assert name == "_cffi_a7462526x4a14b588" |