diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-01-10 22:01:04 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-01-10 22:01:04 -0600 |
commit | 985d99d2934befe8bcf6257cbd9036dee1934ed9 (patch) | |
tree | 836eff9216563f1c5a35bcfa19b60cb5e05dfca0 /tests | |
parent | ab2cfc70a63e49ed385f9bb9c4e44bc86025c3a5 (diff) | |
download | cryptography-985d99d2934befe8bcf6257cbd9036dee1934ed9.tar.gz cryptography-985d99d2934befe8bcf6257cbd9036dee1934ed9.tar.bz2 cryptography-985d99d2934befe8bcf6257cbd9036dee1934ed9.zip |
bytes byte back
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index 421bb530..2a329920 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -107,8 +107,9 @@ class TestOpenSSL(object): assert cipher != backend._ffi.NULL def test_error_strings_loaded(self): + # returns a value in a static buffer err = backend._lib.ERR_error_string(101183626, backend._ffi.NULL) assert backend._ffi.string(err) == ( - "error:0607F08A:digital envelope routines:EVP_EncryptFinal_ex:" - "data not multiple of block length" + b"error:0607F08A:digital envelope routines:EVP_EncryptFinal_ex:" + b"data not multiple of block length" ) |