From 28d18b7c64a6c04f3e84a4f6e6f0d2a3dbee3939 Mon Sep 17 00:00:00 2001 From: michaelbub Date: Fri, 11 Nov 2016 15:53:14 +0100 Subject: [PATCH] update test to run with python 3.5.2 --- test/test_smartplaylist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_smartplaylist.py b/test/test_smartplaylist.py index 34f5b71d1..f6cc04aef 100644 --- a/test/test_smartplaylist.py +++ b/test/test_smartplaylist.py @@ -150,8 +150,8 @@ class SmartPlaylistTest(unittest.TestCase): spl = SmartPlaylistPlugin() i = Mock(path=b'/tagada.mp3') - i.evaluate_template.side_effect = lambda pl, _: pl.replace('$title', 'ta:ga:da') - + i.evaluate_template.side_effect = lambda pl, _: pl.replace(b'$title', b'ta:ga:da').decode() + lib = Mock() lib.replacements = CHAR_REPLACE lib.items.return_value = [i]