]> jfr.im git - yt-dlp.git/blobdiff - test/helper.py
[cleanup] Misc
[yt-dlp.git] / test / helper.py
index 139bdafc3b181a51373e9e2b3de2fe18ae935076..0b90660ff605cf710b259b3ab209d3fd233eb15f 100644 (file)
@@ -254,14 +254,11 @@ def _repr(v):
                 return v.__name__
             else:
                 return repr(v)
-        info_dict_str = ''
-        if len(missing_keys) != len(expected_dict):
-            info_dict_str += ''.join(
-                f'    {_repr(k)}: {_repr(v)},\n'
-                for k, v in test_info_dict.items() if k not in missing_keys)
-
-            if info_dict_str:
-                info_dict_str += '\n'
+        info_dict_str = ''.join(
+            f'    {_repr(k)}: {_repr(v)},\n'
+            for k, v in test_info_dict.items() if k not in missing_keys)
+        if info_dict_str:
+            info_dict_str += '\n'
         info_dict_str += ''.join(
             f'    {_repr(k)}: {_repr(test_info_dict[k])},\n'
             for k in missing_keys)