diff --git a/Lib/test/test_mimetypes.py b/Lib/test/test_mimetypes.py index ef900678ef5796..8d3e8fcafb6740 100644 --- a/Lib/test/test_mimetypes.py +++ b/Lib/test/test_mimetypes.py @@ -248,7 +248,8 @@ def check_extensions(): ("video/mpeg", ".mpeg"), ("video/quicktime", ".mov"), ): - self.assertEqual(mimetypes.guess_extension(mime_type), ext) + with self.subTest(mime_type=mime_type, ext=ext): + self.assertEqual(mimetypes.guess_extension(mime_type), ext) check_extensions() mimetypes.init()