aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-10-19 16:08:02 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-10-19 16:08:02 -0700
commit5d135e0bfbf4d16eb05fb2f38a3bba33deaf09d8 (patch)
treeb2b8da9c090359b8fbf9603b7914f7286dd009ae
parent1f8a60452fb5f2e758b895157685a07dea5b3462 (diff)
downloadcryptography-5d135e0bfbf4d16eb05fb2f38a3bba33deaf09d8.tar.gz
cryptography-5d135e0bfbf4d16eb05fb2f38a3bba33deaf09d8.tar.bz2
cryptography-5d135e0bfbf4d16eb05fb2f38a3bba33deaf09d8.zip
Split this assert into two.
If these fail, py.test can vomit: https://bitbucket.org/hpk42/pytest/issue/612/syntax-error-on-assertion-reinterpretation (I lost track of what I did to make this asseriton vomit unfortunately :-()
-rw-r--r--cryptography/hazmat/backends/openssl/backend.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py
index 6fad6fc7..567f1648 100644
--- a/cryptography/hazmat/backends/openssl/backend.py
+++ b/cryptography/hazmat/backends/openssl/backend.py
@@ -1005,10 +1005,8 @@ class Backend(object):
res = get_func(group, point, check_x, check_y, bn_ctx)
assert res == 1
- assert (
- self._lib.BN_cmp(bn_x, check_x) == 0 and
- self._lib.BN_cmp(bn_y, check_y) == 0
- )
+ assert self._lib.BN_cmp(bn_x, check_x) == 0
+ assert self._lib.BN_cmp(bn_y, check_y) == 0
res = self._lib.EC_KEY_set_public_key(ctx, point)
assert res == 1