diff options
author | Damir Jelić <poljar@termina.org.uk> | 2019-06-20 14:05:36 +0200 |
---|---|---|
committer | Damir Jelić <poljar@termina.org.uk> | 2019-06-20 14:08:21 +0200 |
commit | 61175c969b1de3ecd8c25478c69d6d1883dfa211 (patch) | |
tree | b238a3b616aea2977d8c69504e0d91d4063f4427 /python/tests/group_session_test.py | |
parent | 28350d612e4f2cbb7cdf3187a871a0e9f3c04724 (diff) |
tests: Simplify the input parameter for the Unicode decoding tests.
Diffstat (limited to 'python/tests/group_session_test.py')
-rw-r--r-- | python/tests/group_session_test.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/python/tests/group_session_test.py b/python/tests/group_session_test.py index b45fbb6..4632a60 100644 --- a/python/tests/group_session_test.py +++ b/python/tests/group_session_test.py @@ -1,7 +1,4 @@ # -*- coding: utf-8 -*- - -from builtins import bytes - import pytest from olm import InboundGroupSession, OlmGroupSessionError, OutboundGroupSession @@ -121,7 +118,7 @@ class TestClass(object): outbound = OutboundGroupSession() inbound = InboundGroupSession(outbound.session_key) - text = outbound.encrypt(bytes([0xed])) + text = outbound.encrypt(b"\xed") plaintext, _ = inbound.decrypt(text) print(plaintext) |