diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-13 14:11:04 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-13 14:11:04 -0400 |
commit | 738707729b64ead86ebf71ba6a87a5c1d690b309 (patch) | |
tree | 6a3d7ffd31a65900a7fda2e6791fdbefc5f47dc6 /tests/hazmat | |
parent | 2d1d3bbc49ab3a15069591fac36f8fd59f424233 (diff) | |
download | cryptography-738707729b64ead86ebf71ba6a87a5c1d690b309.tar.gz cryptography-738707729b64ead86ebf71ba6a87a5c1d690b309.tar.bz2 cryptography-738707729b64ead86ebf71ba6a87a5c1d690b309.zip |
be less dumb
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" |