aboutsummaryrefslogtreecommitdiff
path: root/python/tests/session_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/session_test.py')
-rw-r--r--python/tests/session_test.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/python/tests/session_test.py b/python/tests/session_test.py
index dce37c5..b856585 100644
--- a/python/tests/session_test.py
+++ b/python/tests/session_test.py
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
-from builtins import bytes
-
import pytest
from olm import (Account, InboundSession, OlmMessage, OlmPreKeyMessage,
@@ -147,7 +145,7 @@ class TestClass(object):
def test_invalid_unicode_decrypt(self):
alice, bob, session = self._create_session()
- message = session.encrypt(bytes([0xed]))
+ message = session.encrypt(b"\xed")
bob_session = InboundSession(bob, message)
plaintext = bob_session.decrypt(message)