aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTerry Chia <terrycwk1994@gmail.com>2015-09-27 20:26:09 +0800
committerTerry Chia <terrycwk1994@gmail.com>2015-09-27 20:48:43 +0800
commit42ea0d1795797c7f52ba714147e2bbc29dad9deb (patch)
tree138698a348b60a47075a71666652a9182d2915d8 /tests
parent6325d5c9bc54b81e0354127523b7ac449c56c0a1 (diff)
downloadcryptography-42ea0d1795797c7f52ba714147e2bbc29dad9deb.tar.gz
cryptography-42ea0d1795797c7f52ba714147e2bbc29dad9deb.tar.bz2
cryptography-42ea0d1795797c7f52ba714147e2bbc29dad9deb.zip
Pin version of hypothesis above 1.11.4.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_with_hypothesis.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_with_hypothesis.py b/tests/test_with_hypothesis.py
index 261a21d6..1e39b6b1 100644
--- a/tests/test_with_hypothesis.py
+++ b/tests/test_with_hypothesis.py
@@ -1,11 +1,14 @@
+from hypothesis import binary
+
import pytest
from cryptography.fernet import Fernet
+
hypothesis = pytest.importorskip("hypothesis")
-@hypothesis.given(bytes)
+@hypothesis.given(binary())
def test_fernet(data):
f = Fernet(Fernet.generate_key())
ct = f.encrypt(data)