Skip to content

Commit 19b4e35

Browse files
committed
Attempt to fix failing test case
1 parent 61b4ca8 commit 19b4e35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/test_telebot.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def test_send_voice(self):
156156
assert ret_msg.voice.mime_type == 'audio/ogg'
157157

158158
def test_get_file(self):
159-
file_data = open('./test_data/record.ogg')
159+
file_data = open('./test_data/record.ogg', 'rb')
160160
tb = telebot.TeleBot(TOKEN)
161161
ret_msg = tb.send_voice(CHAT_ID, file_data)
162162
file_id = ret_msg.voice.file_id

0 commit comments

Comments
 (0)