aboutsummaryrefslogtreecommitdiff
path: root/python/tests/pk_test.py
diff options
context:
space:
mode:
authorDamir Jelić <poljar@termina.org.uk>2019-06-20 14:05:36 +0200
committerDamir Jelić <poljar@termina.org.uk>2019-06-20 14:08:21 +0200
commit61175c969b1de3ecd8c25478c69d6d1883dfa211 (patch)
treeb238a3b616aea2977d8c69504e0d91d4063f4427 /python/tests/pk_test.py
parent28350d612e4f2cbb7cdf3187a871a0e9f3c04724 (diff)
tests: Simplify the input parameter for the Unicode decoding tests.
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"�"