]> jfr.im git - yt-dlp.git/blobdiff - test/test_netrc.py
[ie/brightcove] Upgrade requests to HTTPS (#10202)
[yt-dlp.git] / test / test_netrc.py
index f7a0b33d269c1ecd7bd4b8af5f9d24769b96f063..1e0f4ee3b27b0f89b93f9d2e07403069f6ac9f98 100644 (file)
@@ -1,3 +1,6 @@
+#!/usr/bin/env python3
+
+# Allow direct execution
 import os
 import sys
 import unittest
@@ -18,7 +21,7 @@ def test_netrc_present(self):
                 continue
             self.assertTrue(
                 ie._NETRC_MACHINE,
-                'Extractor %s supports login, but is missing a _NETRC_MACHINE property' % ie.IE_NAME)
+                f'Extractor {ie.IE_NAME} supports login, but is missing a _NETRC_MACHINE property')
 
 
 if __name__ == '__main__':