aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-07-25 19:07:21 +0100
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-07-25 19:07:21 +0100
commit28fae4e437a8487e6d5414ce5e3f7904f412995d (patch)
tree1c673ef1f31cc7c435c17999ecfe25449efcd785 /src
parent4e4a9ba524efe4963961c62c6da915a834ca185c (diff)
downloadcryptography-28fae4e437a8487e6d5414ce5e3f7904f412995d.tar.gz
cryptography-28fae4e437a8487e6d5414ce5e3f7904f412995d.tar.bz2
cryptography-28fae4e437a8487e6d5414ce5e3f7904f412995d.zip
== instead of in
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/backends/openssl/backend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/backend.py b/src/cryptography/hazmat/backends/openssl/backend.py
index dd89623e..8b332c53 100644
--- a/src/cryptography/hazmat/backends/openssl/backend.py
+++ b/src/cryptography/hazmat/backends/openssl/backend.py
@@ -1057,12 +1057,12 @@ class Backend(object):
)
if res == 0:
errors = self._consume_errors()
- assert errors[0][1:] in (
+ assert errors[0][1:] == (
(
self._lib.ERR_LIB_RSA,
self._lib.RSA_F_RSA_SIGN,
self._lib.RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY
- ),
+ )
)
raise ValueError("Digest too big for RSA key")