Seems like curves are always unicode!
diff --git a/OpenSSL/test/test_ssl.py b/OpenSSL/test/test_ssl.py
index 89e3515..3db1f8f 100644
--- a/OpenSSL/test/test_ssl.py
+++ b/OpenSSL/test/test_ssl.py
@@ -1385,7 +1385,7 @@
"""
context = Context(TLSv1_METHOD)
for curve in get_elliptic_curves():
- if curve.name.decode().startswith(u"Oakley-"):
+ if curve.name.startswith(u"Oakley-"):
# Setting Oakley-EC2N-4 and Oakley-EC2N-3 adds
# ('bignum routines', 'BN_mod_inverse', 'no inverse') to the
# error queue on OpenSSL 1.0.2.