aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2013-11-13 10:37:47 -0800
committerDavid Reid <dreid@dreid.org>2013-11-13 10:37:47 -0800
commit11e8cc7cf05967f203d5e7084756ccc28e43bdf7 (patch)
tree00ffb908a4b86f3965f98fc3a5627061b2a5bdc3 /tests
parent6392a9c63ce134c4aceefb8a4eb9da2fa7f4f390 (diff)
downloadcryptography-11e8cc7cf05967f203d5e7084756ccc28e43bdf7.tar.gz
cryptography-11e8cc7cf05967f203d5e7084756ccc28e43bdf7.tar.bz2
cryptography-11e8cc7cf05967f203d5e7084756ccc28e43bdf7.zip
Import AlreadyFinalized instead of exceptions.
Diffstat (limited to 'tests')
-rw-r--r--tests/hazmat/primitives/test_hashes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/hazmat/primitives/test_hashes.py b/tests/hazmat/primitives/test_hashes.py
index a5c440b8..4c644603 100644
--- a/tests/hazmat/primitives/test_hashes.py
+++ b/tests/hazmat/primitives/test_hashes.py
@@ -19,7 +19,7 @@ import pytest
import six
-from cryptography import exceptions
+from cryptography.exceptions import AlreadyFinalized
from cryptography.hazmat.bindings import _default_backend
from cryptography.hazmat.primitives import hashes
@@ -56,10 +56,10 @@ class TestHashContext(object):
h = hashes.Hash(hashes.SHA1())
h.finalize()
- with pytest.raises(exceptions.AlreadyFinalized):
+ with pytest.raises(AlreadyFinalized):
h.update(b"foo")
- with pytest.raises(exceptions.AlreadyFinalized):
+ with pytest.raises(AlreadyFinalized):
h.copy()