bpo-39299: Add more tests for mimetypes and its cli. (GH-17949) · wrongnull/cpython@d8efc14 · GitHub
Skip to content

Commit d8efc14

Browse files
authored
bpo-39299: Add more tests for mimetypes and its cli. (pythonGH-17949)
* Add tests for case insensitive check of types and extensions as fallback. * Add tests for data url with no comma. * Add tests for read_mime_types. * Add tests for the mimetypes cli and refactor __main__ code to private function. * Restore mimetypes.knownfiles value at the end of the test.
1 parent c1ee6e5 commit d8efc14

2 files changed

Lines changed: 85 additions & 5 deletions

File tree

Lib/mimetypes.py

Lines changed: 5 additions & 1 deletion

Lib/test/test_mimetypes.py

Lines changed: 80 additions & 4 deletions

0 commit comments

Comments
 (0)