Open orlitzky opened 2 weeks ago
wait for CI, I haven't actually tried it
Documentation preview for this PR (built with commit baecf8cfe833aff051aca9a49cbe7d38e1716915; changes) is ready! :tada: This preview will update shortly after each push to this PR.
In what situation, SAGE_ROOT
could be None
?
What subprocess is this test for? sage -python
?
On 2024-11-18 19:58:58, Kwankyu Lee wrote:
In what situation,
SAGE_ROOT
could beNone
?
I don't have an example handy, but after sagelib is installed, SAGE_ROOT should not matter -- maybe some distro packages are setting it to None to avoid leaking details about the build system?
What subprocess is this test for?
sage -python
?
Essentially, yes. Whatever python is used to run sage. I think most often it will be the system python.
Thanks again.
In this file we test that
SAGE_ROOT
in a subprocess is the same asSAGE_ROOT
in the parent. There is a special case for whenSAGE_ROOT is None
, but that special case can pass if only one of theSAGE_ROOT
variables isNone
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 areNone
if one of them is.Thanks to Gonzalo Tornaría for the suggestion.