From 68534780434a5477100ce543dd825ad004456061 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 11 Nov 2024 22:37:59 +0200 Subject: [PATCH] Use subTest Co-authored-by: Zachary Ware --- Lib/test/test_mimetypes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()