]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-93417: Improve test_mimetypes (GH-150725) (GH-153749)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 15 Jul 2026 09:12:38 +0000 (12:12 +0300)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2026 09:12:38 +0000 (09:12 +0000)
commitd4e7a842ce81a18aa5e2e7d071768f0a9892d97b
treea41b0b46329a835ad37d22bbb3b6cbc3bbb4b05a
parentfb1fb128574e90e11d7b74ab9ebbcbcf08c215e8
[3.14] gh-93417: Improve test_mimetypes (GH-150725) (GH-153749)

* Separate tests for module-level API and for the MimeTypes class.
* Add tests for mimetypes.init() and MimeTypes() with knownfiles and with
  explicitly passed files.

(cherry picked from commit b23646adf1f484d6ee61ea04529b48443508715a)
Lib/test/mime.types2 [new file with mode: 0644]
Lib/test/test_mimetypes.py