Skip to content

Commit 235bb72

Browse files
committed
use future.utils.text_to_native_str
1 parent 9a5ccb1 commit 235bb72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_sticker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import os
2424

2525
from flaky import flaky
26+
from future.utils import text_to_native_str
2627

2728
sys.path.append('.')
2829

@@ -70,7 +71,7 @@ def test_send_sticker_resend(self):
7071
self.assertEqual(sticker.width, self.width)
7172
self.assertEqual(sticker.height, self.height)
7273
self.assertTrue(isinstance(sticker.thumb, telegram.PhotoSize))
73-
self.assertEqual(sticker.emoji, self.emoji.decode('utf-8'))
74+
self.assertEqual(sticker.emoji, text_to_native_str(self.emoji))
7475
self.assertEqual(sticker.file_size, self.file_size)
7576

7677
def test_sticker_de_json(self):

0 commit comments

Comments
 (0)