diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2016-07-27 18:27:40 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2018-02-05 22:22:08 +0100 |
commit | bbfa8cd9bfae22c999a29e4755be0b88c1160921 (patch) | |
tree | 9ed27918b2e3e55f2ad4e4c5a06a7e8bbd940b8d /tests | |
parent | 038391c92f36d32e36e82d3b5fa10a734e5309e8 (diff) | |
download | m2crypto-bbfa8cd9bfae22c999a29e4755be0b88c1160921.tar.gz |
Don't use util.py3bytes when you don't have to.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_x509.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py index 199516b..aee7046 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -198,7 +198,7 @@ class X509TestCase(unittest.TestCase): # /compound_stmts.html#the-for-statement # so this checks what are the attributes of the last value of # ``cn`` variable. - cn.set_data("Hello There!") + cn.set_data(b"Hello There!") self.assertEqual(cn.get_data().as_text(), "Hello There!") # OpenSSL 1.0.1h switched from encoding strings as PRINTABLESTRING (the |