From 323145c44b017ce087a659965fe0889186b51d05 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 17 Jan 2015 21:07:27 +0200 Subject: [PATCH] audio: fix UTs --- tests/test_audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_audio.py b/tests/test_audio.py index 9666cbf..7a3b552 100644 --- a/tests/test_audio.py +++ b/tests/test_audio.py @@ -9,7 +9,7 @@ def test(): data = b'\x12\x34' * length with mock.patch('ctypes.CDLL') as cdll: lib = mock.Mock() - lib.Pa_GetErrorText = lambda code: 'Error' if code else 'Success' + lib.Pa_GetErrorText = lambda code: b'Error' if code else b'Success' lib.Pa_GetDefaultOutputDevice.return_value = 1 lib.Pa_GetDefaultInputDevice.return_value = 2 lib.Pa_OpenStream.return_value = 0