From 61175c969b1de3ecd8c25478c69d6d1883dfa211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 20 Jun 2019 14:05:36 +0200 Subject: tests: Simplify the input parameter for the Unicode decoding tests. --- python/tests/session_test.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'python/tests/session_test.py') 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) -- cgit v1.2.3