Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-93096: fixtest_mimetypes.test_guess_type_conflicting_with_mimetypes
#131408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
gh-93096: fixtest_mimetypes.test_guess_type_conflicting_with_mimetypes
#131408
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Using `run_python_until_end()` ignores `setUpModule()`. In particular,mocking `mimetypes.knownfiles` has no effect for the CLI tests andleads to issues on platforms defining non-standard MIME types suchas macOS or openSUSE.
!buildbot macOS |
bedevere-bot commentedMar 18, 2025
🤖 New build scheduled with the buildbot fleet by@picnixz for commit62863a0 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F131408%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
!buildbot macOS |
bedevere-bot commentedMar 18, 2025
🤖 New build scheduled with the buildbot fleet by@picnixz for commit7be23f0 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F131408%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
@hugovk friendly ping (I hope we can ship it before the release as it could affect openSUSE users) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
An alternative solution tosys.exit()
with a string or the esotericparser.exit()
would just be to directly raiseSystemExit
, would this work?:
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Mmh the CI seems to hang? |
…cnixz/cpython into fix/test/conflicting-mime-types-93096
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thank you!
Ah I wanted to write the commit message :') but you beat me to it |
53908bd
intopython:mainUh oh!
There was an error while loading.Please reload this page.
Hum:
This is on iOS ARM64. Let's just skip this one on this maybe. |
Uh oh!
There was an error while loading.Please reload this page.
Using
run_python_until_end()
ignoressetUpModule()
. In particular, mockingmimetypes.knownfiles
has no effect for the CLI tests and leads to issues on platforms defining non-standard MIME types such as macOS or openSUSE.I think this was overlooked in#93097 and this may be the reason why finding the correct extension was tedious. Now, all platforms should support the test correctly (previously, the macOS files were still looked up as
mimetypes.knownfiles
was not unset for CLI tests).