From 19b4e35ee5d41e603b1954d47a0ef2a30e4203fc Mon Sep 17 00:00:00 2001 From: pieter Date: Fri, 18 Sep 2015 21:11:56 +0200 Subject: [PATCH] Attempt to fix failing test case --- tests/test_telebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_telebot.py b/tests/test_telebot.py index 2c26da3..8c72302 100644 --- a/tests/test_telebot.py +++ b/tests/test_telebot.py @@ -156,7 +156,7 @@ class TestTeleBot: assert ret_msg.voice.mime_type == 'audio/ogg' def test_get_file(self): - file_data = open('./test_data/record.ogg') + file_data = open('./test_data/record.ogg', 'rb') tb = telebot.TeleBot(TOKEN) ret_msg = tb.send_voice(CHAT_ID, file_data) file_id = ret_msg.voice.file_id