Skip to content
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

src/sage/env.py: don't pass if mismatched SAGE_ROOT is None #38935

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

orlitzky
Copy link
Contributor

@orlitzky orlitzky commented Nov 7, 2024

In this file we test that SAGE_ROOT in a subprocess is the same as SAGE_ROOT in the parent. There is a special case for when SAGE_ROOT is None, but that special case can pass if only one of the SAGE_ROOT variables is None and the other is not -- contrary to the intent of the test.

Here we extend the special case to ensure that both SAGE_ROOT variables are None if one of them is.

Thanks to Gonzalo Tornaría for the suggestion.

@orlitzky
Copy link
Contributor Author

orlitzky commented Nov 7, 2024

wait for CI, I haven't actually tried it

Copy link

github-actions bot commented Nov 7, 2024

Documentation preview for this PR (built with commit baecf8c; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

In this file we test that SAGE_ROOT in a subprocess is the same as
SAGE_ROOT in the parent. There is a special case for when SAGE_ROOT is
None, but that special case can pass if only one of the SAGE_ROOT
variables is None and the other is not -- contrary to the intent of
the test.

Here we extend the special case to ensure that both SAGE_ROOT
variables are None if one of them is.

Thanks to Gonzalo Tornaría for the suggestion.
@orlitzky orlitzky force-pushed the improved-subprocess-sage-root-test branch from be1673c to baecf8c Compare November 7, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant