diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py index 6f15b454e..0ba04783d 100644 --- a/beetsplug/replaygain.py +++ b/beetsplug/replaygain.py @@ -613,7 +613,7 @@ class FfmpegBackend(Backend): return float(value) except ValueError: raise ReplayGainError( - u"ffmpeg output: expected float value, found {1}" + u"ffmpeg output: expected float value, found {0}" .format(value) ) diff --git a/test/test_player.py b/test/test_player.py index 021a04fc0..dd47ac62b 100644 --- a/test/test_player.py +++ b/test/test_player.py @@ -241,6 +241,8 @@ def implements(commands, expectedFailure=False): # noqa: N803 bluelet_listener = bluelet.Listener + + @mock.patch("beets.util.bluelet.Listener") def start_server(args, assigned_port, listener_patch): """Start the bpd server, writing the port to `assigned_port`. diff --git a/test/test_playlist.py b/test/test_playlist.py index edd98e711..88abb733f 100644 --- a/test/test_playlist.py +++ b/test/test_playlist.py @@ -120,7 +120,7 @@ class PlaylistQueryTestHelper(PlaylistTestHelper): ])) def test_name_query_with_nonexisting_playlist(self): - q = u'playlist:nonexisting'.format(self.playlist_dir) + q = u'playlist:nonexisting' results = self.lib.items(q) self.assertEqual(set(results), set())