]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-93417: Improve test_mimetypes (GH-150725)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 1 Jun 2026 20:02:40 +0000 (23:02 +0300)
committerGitHub <noreply@github.com>
Mon, 1 Jun 2026 20:02:40 +0000 (23:02 +0300)
commitb23646adf1f484d6ee61ea04529b48443508715a
tree3e471e4e85aa913a75c4dd6c6c59f12c4b044f66
parent9ba2a891798a06508f63e216d3a1b6907b39eec4
gh-93417: Improve test_mimetypes (GH-150725)

* 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.
Lib/test/mime.types2 [new file with mode: 0644]
Lib/test/test_mimetypes.py