You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_sysconfig leaves the sysconfig prefix cache modified #155726
TestSysConfig.tearDown() restores sysconfig._CONFIG_VARS, but not sysconfig._config_vars_cached_prefix and sysconfig._config_vars_cached_exec_prefix.
test_sysconfig_config_vars_no_prefix_cache sets sys.prefix to 'prefix-BBB' and calls get_config_vars(), so the cached prefix keeps that value after the test. The next get_config_vars() call finds the cache stale and replaces _CONFIG_VARS with a new dict:
regrtest reports this as Warning -- sysconfig._CONFIG_VARS was modified by test_sysconfig, because its own check calls sysconfig.get_config_var('prefix') before comparing:
Activity
gh-155726: Restore the sysconfig prefix cache in test_sysconfig (GH-1…
pythongh-155726: Restore the sysconfig prefix cache in test_sysconfig (…