-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
test_webbrowser failure on MacOS if BROWSER set to "open" #131254
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
AFAIU, I suggest using |
The test should guard as @picnixz suggests. But just out of curiosity, why is |
That's the most obvious choice to me on MacOS. I don't need to include a full path to a browser (Brave, Safari, whatever). To wit:
If I want to switch to a different default browser, MacOS allows me to do that in the settings app. No need to mess with any environment variables. |
Thanks for fixing the test, @picnixz! Sorry for missing it the first time around. @smontanaro I think the question was about why override BROWSER to |
I'm not entirely sure, but... I have the same setting on my old Dell (predecessor to my Mac). It runs Ubuntu, which has https://askubuntu.com/questions/27447/google-earth-and-browser-environment-variable Edit: Which is to say maybe there are other tools which use |
@smontanaro Can you have a look at the PR to check if it works? I can't request you for review. TiA |
I looked at the diff, but the code in that section of my latest pull didn't look at all like it. I assumed it had already been merged to main, so didn't try. In any case, |
I don't think I've merged it but maybe it's because of some side-effects that it's still passing? anyway, I think it doesn't hurt to simply unset the environment variable temporarily. Or @hugovk (you're the only other one I know who's using a mac, sorry for the ping...) maybe you could check if it passes on your mac if you do |
Ack! I had unset I can confirm that applying the change from your PR fixes the test. |
Likewise confirmed! |
As I said on the PR, no need for bp as the test was added in #130535. Thanks for the report and for testing my fix! |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
I just noticed a new-to-me failure on
main
for thetest_webbrowser
unit test. Here's the rundown:In short, if the
BROWSER
environment variable is set toopen
, the test fails. (This didn't used to be the case as far as I can recall. The entire test suite passed a couple days ago with the expected skips, no failures.) If I unsetBROWSER
, the test succeeds.I suspect this commit is the culprit:
96492785b202a92af1b71f8c011ea839ca3ebb07
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
test_webbrowser
on macOS #131276Feature was introduced in #130535.
The text was updated successfully, but these errors were encountered: