Skip to content

Commit

Permalink
Skip hypothesis tests on Python 2.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayrx committed Mar 21, 2015
1 parent c7ef488 commit 62cff38
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_with_hypothesis.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import sys

from hypothesis import given

import pytest

from aead import AEAD


pytestmark = pytest.mark.skipif(
sys.version_info[:2] == (2, 6),
reason="Hypothesis does not support Python 2.6"
)


@given(bytes, bytes)
def test_round_trip_encrypt_decrypt(plaintext, associated_data):
cryptor = AEAD(AEAD.generate_key())
Expand Down

0 comments on commit 62cff38

Please sign in to comment.