Commit 75b3561
committed
gh-155726: Restore the sysconfig prefix cache in test_sysconfig
test_sysconfig_config_vars_no_prefix_cache changes sys.prefix and calls
get_config_vars(), which caches the new prefix in module globals.
tearDown() restored sysconfig._CONFIG_VARS, but not those globals, so the
next get_config_vars() call found the cache stale and replaced
_CONFIG_VARS with a new dict.1 parent f056212 commit 75b3561
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
95 | 102 | | |
96 | 103 | | |
97 | 104 | | |
| |||
0 commit comments