aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-01-02 10:55:36 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-01-02 10:55:36 -0800
commit5bae063ff2601db15d84920f18bae194bcd3d373 (patch)
treeb6c39a3f84b434ae26245fcda6abe6c1e4165156 /tests/hazmat/primitives
parent09aa74635f54ace5480a6d502b0da92651f516b6 (diff)
parenta6d5d6ec53da5bea0193047c5e535a05442f2dfd (diff)
downloadcryptography-5bae063ff2601db15d84920f18bae194bcd3d373.tar.gz
cryptography-5bae063ff2601db15d84920f18bae194bcd3d373.tar.bz2
cryptography-5bae063ff2601db15d84920f18bae194bcd3d373.zip
Merge branch 'master' into fernet
Conflicts: docs/index.rst
Diffstat (limited to 'tests/hazmat/primitives')
-rw-r--r--tests/hazmat/primitives/utils.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/hazmat/primitives/utils.py b/tests/hazmat/primitives/utils.py
index cdcf84cb..6ecc70ff 100644
--- a/tests/hazmat/primitives/utils.py
+++ b/tests/hazmat/primitives/utils.py
@@ -264,13 +264,10 @@ def aead_tag_exception_test(backend, cipher_factory, mode_factory):
)
with pytest.raises(ValueError):
cipher.decryptor()
- cipher = Cipher(
- cipher_factory(binascii.unhexlify(b"0" * 32)),
- mode_factory(binascii.unhexlify(b"0" * 24), b"000"),
- backend
- )
+
with pytest.raises(ValueError):
- cipher.decryptor()
+ mode_factory(binascii.unhexlify(b"0" * 24), b"000")
+
cipher = Cipher(
cipher_factory(binascii.unhexlify(b"0" * 32)),
mode_factory(binascii.unhexlify(b"0" * 24), b"0" * 16),