Skip to content
Merged
Prev Previous commit
Next Next commit
move comment upper
  • Loading branch information
neonene committed Jun 15, 2022
commit 500cb811d08cad804ae914087ea6c28d89f2eaa2
4 changes: 2 additions & 2 deletions Programs/_testembed.c
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,8 @@ static int test_init_setpythonhome(void)

static int test_init_is_python_build(void)
{
// gh-91985: in-tree builds fail to check for build directory landmarks
// under the effect of 'home' or PYTHONHOME environment variable.
char *env = getenv("TESTHOME");
if (!env) {
error("missing TESTHOME env var");
Expand All @@ -1566,8 +1568,6 @@ static int test_init_is_python_build(void)
PyConfig config;
_PyConfig_InitCompatConfig(&config);
config_set_program_name(&config);
// gh-91985: in-tree builds fail to check for build directory landmarks
// under the effect of 'home' or PYTHONHOME environment variable.
config_set_string(&config, &config.home, home);
PyMem_RawFree(home);
putenv("TESTHOME=");
Expand Down