[issue44159] mimetypes - "strict" on Windows

2022-03-31 Thread Mark Dong
Mark Dong added the comment: Hi, I want to follow up on this: On Linux (Ubuntu 20.04.4 LTS), the module also loads everything it finds in the registries (a.k.a, entries in the "knownfiles" variable) in "strict" mode, even though some of them aren't registered in IANA. (I'm assuming that

[issue44159] mimetypes - "strict" on Windows

2021-07-11 Thread Brandon Schabell
Change by Brandon Schabell : -- keywords: +patch nosy: +brandonschabell nosy_count: 5.0 -> 6.0 pull_requests: +25636 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27088 ___ Python tracker

[issue44159] mimetypes - "strict" on Windows

2021-05-17 Thread Ned Deily
Change by Ned Deily : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue44159] mimetypes - "strict" on Windows

2021-05-17 Thread Norman Lorrain
Norman Lorrain added the comment: Possible solution is to read the Windows Registry entries, assigning those entries as "strict=False". Unit tests pass with this change: diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 018793c4f0..dd2bddf064 100644 --- a/Lib/mimetypes.py +++

[issue44159] mimetypes - "strict" on Windows

2021-05-17 Thread Norman Lorrain
New submission from Norman Lorrain : On Windows 10 machine, unit tests show this error: 0:05:10 load avg: 3.24 [221/427/1] test_mimetypes failed test test_mimetypes failed -- Traceback (most recent call last): File "D:\github\cpython\lib\test\test_mimetypes.py", line 289, in