aboutsummaryrefslogtreecommitdiff
path: root/python/tests/pk_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/pk_test.py')
-rw-r--r--python/tests/pk_test.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/python/tests/pk_test.py b/python/tests/pk_test.py
index b82f420..ef87465 100644
--- a/python/tests/pk_test.py
+++ b/python/tests/pk_test.py
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
-from builtins import bytes
-
import pytest
from olm import (PkDecryption, PkDecryptionError, PkEncryption, PkSigning,
@@ -62,6 +60,6 @@ class TestClass(object):
def test_invalid_unicode_decrypt(self):
decryption = PkDecryption()
encryption = PkEncryption(decryption.public_key)
- message = encryption.encrypt(bytes([0xed]))
+ message = encryption.encrypt(b"\xed")
plaintext = decryption.decrypt(message)
assert plaintext == u"�"