We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bac8d5d commit e177398Copy full SHA for e177398
Lib/test/test_mimetypes.py
@@ -314,7 +314,9 @@ def test_added_types_are_used(self):
314
self.assertEqual(mime_type, 'testing/type')
315
316
def test_add_type_with_undotted_extension_raises_exception(self):
317
- with self.assertRaises(ValueError):
+ with self.assertRaisesRegex(
318
+ ValueError, "Extensions should start with a '.' or be empty"
319
+ ):
320
mimetypes.add_type('testing/type', 'undotted')
321
322
def test_add_type_with_empty_extension_emits_no_warning(self):
0 commit comments