Commit a8427d8
committed
Fix test_launcher sporadic failures via py.ini isolation
The launcher reads py.ini from %LOCALAPPDATA% via SHGetFolderPathW,
which is shared across all processes for a given user. When multiple
test processes run concurrently on the same machine, one process's
py.ini writes (e.g. python3=PythonTestSuite/3.100-arm64) leak into
another process's launcher invocations, causing assertions like
"PythonCore != PythonTestSuite" to fail.
Add a PYLAUNCHER_INIDIR environment variable to the launcher that,
when set, redirects py.ini lookup to the specified directory and skips
the default locations. Update test_launcher.py to create an isolated
temp directory per test class and pass it via PYLAUNCHER_INIDIR.1 parent fbd3b25 commit a8427d8
2 files changed
Lines changed: 26 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
230 | 232 | | |
231 | 233 | | |
232 | 234 | | |
| |||
262 | 264 | | |
263 | 265 | | |
264 | 266 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
270 | 275 | | |
271 | 276 | | |
272 | 277 | | |
| |||
302 | 307 | | |
303 | 308 | | |
304 | 309 | | |
| 310 | + | |
| 311 | + | |
305 | 312 | | |
306 | 313 | | |
307 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
925 | 939 | | |
926 | 940 | | |
927 | 941 | | |
| |||
0 commit comments