summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2016-07-27 18:27:40 +0200
committerMatěj Cepl <mcepl@cepl.eu>2018-02-05 22:22:08 +0100
commitbbfa8cd9bfae22c999a29e4755be0b88c1160921 (patch)
tree9ed27918b2e3e55f2ad4e4c5a06a7e8bbd940b8d /tests
parent038391c92f36d32e36e82d3b5fa10a734e5309e8 (diff)
downloadm2crypto-bbfa8cd9bfae22c999a29e4755be0b88c1160921.tar.gz
Don't use util.py3bytes when you don't have to.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_x509.py2
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