summaryrefslogtreecommitdiff
path: root/tests/util.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-09-11 11:48:14 -0400
committerHynek Schlawack <hs@ox.cx>2016-09-11 17:48:14 +0200
commite7f5198ef7bcf4dc920ed85502f1c8ca0f7f9906 (patch)
treedfa146986f7ae156ec6995606aef0adf8e0e70e4 /tests/util.py
parent51d424c399df88f68c2fb9a389843f9f847f2956 (diff)
downloadpyopenssl-git-e7f5198ef7bcf4dc920ed85502f1c8ca0f7f9906.tar.gz
Fixed #529 -- use the native bytes syntax (#536)
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/util.py b/tests/util.py
index 56d7154..2cab91f 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -24,11 +24,11 @@ from OpenSSL.crypto import Error
from . import memdbg
-from OpenSSL._util import ffi, lib, byte_string as b
+from OpenSSL._util import ffi, lib
# This is the UTF-8 encoding of the SNOWMAN unicode code point.
-NON_ASCII = b("\xe2\x98\x83").decode("utf-8")
+NON_ASCII = b"\xe2\x98\x83".decode("utf-8")
class TestCase(TestCase):