]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-93417: Improve test_mimetypes (GH-150725) (GH-153748)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 15 Jul 2026 09:48:33 +0000 (12:48 +0300)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2026 09:48:33 +0000 (09:48 +0000)
commit22eff887f7565d24b6ba54bc147672d3ecdd8cf7
tree2077998ab8dfeb9395dda562f34ea96df3fef4ac
parent29e733ac31ea21c4d62f4e61bca61234cb6b0827
[3.15] gh-93417: Improve test_mimetypes (GH-150725) (GH-153748)

* 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