diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2016-07-04 09:51:32 -0400 |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2016-07-04 15:51:32 +0200 |
commit | 37726111350e8b923a00cc0511b4cd903b5c522f (patch) | |
tree | c333bf49baf74a1f9f35793a3a213eba7faaca7b /src/OpenSSL/crypto.py | |
parent | 7778e796de33dc6b582723698410de0047e97bb0 (diff) | |
download | pyopenssl-37726111350e8b923a00cc0511b4cd903b5c522f.tar.gz |
Write a few more tests (#503)
* Write a few more tests
* pytestify this whole jam
Diffstat (limited to 'src/OpenSSL/crypto.py')
-rw-r--r-- | src/OpenSSL/crypto.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py index 91cc8c8..4a379e8 100644 --- a/src/OpenSSL/crypto.py +++ b/src/OpenSSL/crypto.py @@ -1117,9 +1117,7 @@ class X509(object): _raise_current_error() asn1_serial = _ffi.gc(asn1_serial, _lib.ASN1_INTEGER_free) set_result = _lib.X509_set_serialNumber(self._x509, asn1_serial) - if not set_result: - # TODO Not tested - _raise_current_error() + _openssl_assert(set_result == 1) def get_serial_number(self): """ |