Switch from returning False to raising an Error if the key doesn't check out - this provides more information
diff --git a/OpenSSL/test/test_crypto.py b/OpenSSL/test/test_crypto.py
index a22ad12..cda0137 100644
--- a/OpenSSL/test/test_crypto.py
+++ b/OpenSSL/test/test_crypto.py
@@ -618,7 +618,7 @@
L{PKeyType.check} returns C{False} if the key is not consistent.
"""
key = load_privatekey(FILETYPE_PEM, inconsistentPrivateKeyPEM)
- self.assertFalse(key.check())
+ self.assertRaises(Error, key.check)
class X509NameTests(TestCase):