]> jfr.im git - yt-dlp.git/blobdiff - test/test_post_hooks.py
[cleanup] Add more ruff rules (#10149)
[yt-dlp.git] / test / test_post_hooks.py
index 3778d1794258679e55a386913be919db343ec3c8..6500dd3863deb3ce3d978aed8a20db8cf301f1d2 100644 (file)
@@ -59,7 +59,7 @@ def hook_two(self, filename):
 
     def hook_three(self, filename):
         self.files.append(filename)
-        raise Exception('Test exception for \'%s\'' % filename)
+        raise Exception(f'Test exception for \'{filename}\'')
 
     def tearDown(self):
         for f in self.files: