Fix new flake8 warnings

This commit is contained in:
Adrian Sampson 2020-05-13 08:20:50 -04:00
parent f43a0c3270
commit 5db2b4ccaa
3 changed files with 4 additions and 2 deletions

View file

@ -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)
)

View file

@ -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`.

View file

@ -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())