From c3232e6d8ffb3ca925dc114117d16da04bbf7865 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Sat, 13 Feb 2021 14:29:40 +0100 Subject: [PATCH] fix python3.5 --- python/tests/test_account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tests/test_account.py b/python/tests/test_account.py index 203536492..36d6d180c 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -1130,8 +1130,8 @@ class TestOnlineAccount: msg = ac1._evtracker.wait_next_incoming_message() assert msg.text == "first message" assert not msg.is_encrypted() - assert msg.chat.get_encryption_info() == f"{ac2.get_config('addr')} End-to-end encryption preferred." - + res = "{} End-to-end encryption preferred.".format(ac2.get_config('addr')) + assert msg.chat.get_encryption_info() == res lp.sec("ac2 learns that ac3 prefers encryption") ac2.create_chat(ac3) msg = ac3.create_chat(ac2).send_text("I prefer encryption")