Skip to content

Commit

Permalink
Use subTest
Browse files Browse the repository at this point in the history
Co-authored-by: Zachary Ware <[email protected]>
  • Loading branch information
hugovk and zware authored Nov 11, 2024
1 parent 19cf696 commit 6853478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_mimetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6853478

Please sign in to comment.