aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat')
-rw-r--r--tests/hazmat/primitives/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hazmat/primitives/utils.py b/tests/hazmat/primitives/utils.py
index 839ff822..98455556 100644
--- a/tests/hazmat/primitives/utils.py
+++ b/tests/hazmat/primitives/utils.py
@@ -7,7 +7,7 @@ from cryptography.hazmat.bindings import _ALL_BACKENDS
from cryptography.hazmat.primitives import hashes, hmac
from cryptography.hazmat.primitives.ciphers import Cipher
from cryptography.exceptions import (
- AlreadyFinalized, NotFinalized,
+ AlreadyFinalized, NotYetFinalized,
)
from ...utils import load_vectors_from_file
@@ -333,7 +333,7 @@ def aead_use_after_finalize_test(backend, cipher_factory, mode_factory,
)
encryptor = cipher.encryptor()
encryptor.update(b"a" * 16)
- with pytest.raises(NotFinalized):
+ with pytest.raises(NotYetFinalized):
encryptor.tag
encryptor.finalize()
with pytest.raises(AlreadyFinalized):