Address comments.

This commit is contained in:
Terry Chia 2015-09-30 19:13:14 +08:00
parent 3d7f8d1d6c
commit 36a787ff21
2 changed files with 4 additions and 5 deletions

View file

@ -60,12 +60,10 @@ test_requirements = [
"pytest<2.8",
"pretend",
"iso8601",
"hypothesis",
"hypothesis-pytest",
]
if sys.version_info[:2] != (2, 6):
test_requirements.append("hypothesis")
test_requirements.append("hypothesis-pytest")
# If there's no vectors locally that probably means we are in a tarball and
# need to go and get the matching vectors package from PyPi
if not os.path.exists(os.path.join(base_dir, "vectors/setup.py")):

View file

@ -1,3 +1,4 @@
from hypothesis import given
from hypothesis.strategies import binary
import pytest
@ -8,7 +9,7 @@ from cryptography.fernet import Fernet
hypothesis = pytest.importorskip("hypothesis")
@hypothesis.given(binary())
@given(binary())
def test_fernet(data):
f = Fernet(Fernet.generate_key())
ct = f.encrypt(data)